Jump to content

php session help!


lilywong

Recommended Posts

[quote author=legohead6 link=topic=102045.msg404886#msg404886 date=1154052078]
Pg 1

[code]SESSION_START();
$_SESSION['user']="$variable";
[/code]

the $variable i have is not a defined variable, it is an object, and point to a class file to get the data. in pg1, if i echo echo $user->UserName, it just work fine. when i click to pg2, and echo the same thing, nothing comes out!

if i simply define $_SESSION['user']="test";, and i echo $_SESSION['user'] in pg2, it just works fine.
Link to comment
https://forums.phpfreaks.com/topic/15788-php-session-help/#findComment-64940
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.