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...

/Fredrik

What 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)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to