Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print_r($_session);

Status
Not open for further replies.

aarrgghh

Technical User
Sep 5, 2002
60
US
I am having problems keeping session variables. Whne I use print_r($_session) on the first page I can see my variable values, but when I go to the next page and try to access the variables using the same function, print_r($_session). I get an empty Array(). Does anyone know whats going on?

Here is the flow:
LogIn.html - variables passed to the login process page via post. (page 1)

LoginProcess.php - Session is started and variables are registered. (page 2)

Intro.php - Session Variables are accessed easily. (page 3)

Page2.php - Session variables are gone. Returns Array(). (page 4)

Thanks in advance for the help.
 
Thanks for catching that. I have been staring at it for a long time, and never saw that. THanks again.

Patrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top