<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1033295" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1033295</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/page-access-restriction#comment-1194328</link>
    <description> &lt;p&gt;To set a cookie:&lt;br /&gt;
setcookie(&quot;name&quot;,&quot;cookie-value&quot;,time()+(3600*24*365));&lt;/p&gt;
&lt;p&gt;name= name of cookie&lt;br /&gt;
cookie-value = whatever you want it to equal (dont put passwords in there)&lt;/p&gt;
&lt;p&gt;to set a session (which would become a cookie if cookies enabled)&lt;br /&gt;
				session_name(SESSION_NAME);&lt;br /&gt;
				$value = $_SESSION[&#039;IS_LOGGED&#039;];&lt;/p&gt;
&lt;p&gt;SESSION_NAME = name of session (same as it would be in cookie)&lt;br /&gt;
IS_LOGGED = can be anything&lt;br /&gt;
$value is the PHP variable that can be checked on pages you want to see if it&#039;s been set, like so:&lt;br /&gt;
if(!isset($_SESSION[&#039;IS_LOGGED&#039;]))&lt;br /&gt;
	{&lt;br /&gt;
		Header(&quot;Location: login.php&quot;);&lt;br /&gt;
		exit;&lt;br /&gt;
	}&lt;/p&gt;
 </description>
     <pubDate>Thu, 02 Mar 2006 08:43:07 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1194328 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/page-access-restriction#comment-1194307</link>
    <description> &lt;p&gt;thanks for the advice. I got the payment redirect working. &lt;/p&gt;
&lt;p&gt;but I still need help with members login access is there a code that will create a cookie that the restricted page will look for hence preventing access if not present and will redirect to the login page.&lt;/p&gt;
 </description>
     <pubDate>Wed, 01 Mar 2006 21:04:59 +0000</pubDate>
 <dc:creator>chrisruss</dc:creator>
 <guid isPermaLink="false">comment 1194307 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/page-access-restriction#comment-1194304</link>
    <description> &lt;p&gt;The payment center should offer redirect options shouldn&#039;t they?&lt;/p&gt;
&lt;p&gt;you can set PHP up to use html extensions, so you can use (header: location.html) *before any screen output*&lt;/p&gt;
 </description>
     <pubDate>Wed, 01 Mar 2006 20:50:12 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1194304 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
