Quote:
Originally posted by Gayle29uk
You can't do that.
|
Yes you can. Try it and see. His problem is that the first page works and the second doesn't.
Quote:
As far as I am aware there are restrictions on where you can use $_SESSION etc so the easy way round it is to always assign all session variables to normal variables at the top of each page.
|
$_SESSION is a superglobal and can be accessed anywhere. $HTTP_SESSION_VARS is a global and can be accessed anywhere outside functions, and by using global inside functions too.
http://www.php.net/variables.predefined