Re: Re: SESSION and include
| From: | Barry | Date: | Wed, 08 Feb 2006 15:40:37 +0000 |
| Subject: | Re: Re: SESSION and include | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230101@lists.php.net to get a copy of this message | ||
Fredrik Tillman wrote:
ok.. Let me explain the problem better. 'user_level' is set by a login script. It seems to be working fine since I can make things like: if ("1"==$_SESSION[user_level]) { let this stuff happen } on my mainpage. on that same mainpage I use include ("page.php"); (I also tried require...) If I access page.php directly (by writing the URL in my browser) things like if ("1"==$_SESSION[user_level]) { let this stuff happen } will work just fine, but when page.php is included in mainpage the $_SESSION[user_level] is empty for that included part... /FredrikWhat does -> require ("page.php"); print_r($_SESSION); prints out? -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)