View Single Post
Unread 4 Sep 2003, 17:10   #10
queball
Ball
 
queball's Avatar
 
Join Date: Oct 2001
Posts: 4,410
queball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so little
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
queball is offline   Reply With Quote