Jump to content

Session variable


jjmusicpro

Recommended Posts

ok this is weird...

 

I created 2 session variables, i post to the page, it says im logged in displays the values of those session objects, then i wanted to click a link, and on that page, show me the value of that session object, however it says its blank.

 

$a ="yes";

$b="yes";

$_SESSION['loggedin']=$a;

$_SESSION['accesstype']=$b;

 

on page 2 i say echo $_SESSION['loggedin']; and it doent display anything, but if i put that same code on the page the session object was created on, it will show the value as "yes" like it should.

Link to comment
https://forums.phpfreaks.com/topic/109197-session-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.