Jump to content

Session variable contains blank data on hosted site


JRS

Recommended Posts

Hello,

I'm encountering a strange problem. Session variables on my hosted site is getting corrupted. However, on the local site it works without any problems.

I ran phpinfo on both systems:
hosted site
session.save_path /tmp /tmp
session.use_trans_sid On On


On the local system
session.save_path novalue novalue
session.use_trans_sid Off Off

Also the tmp directory was missing on the hosted site, so I created
one, not sure about the path.

Would anyone have any ideas on what might be happening to cause this problem?
Thanks in advance
JRS
Could you check also whether [b]register_globals[/b] is on or off on both sites too. As I have feeling your webshot has this enabled and you been coding with register_globals off on your local server, or vise versa
[!--quoteo(post=368334:date=Apr 25 2006, 05:07 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 25 2006, 05:07 AM) [snapback]368334[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Could you check also whether [b]register_globals[/b] is on or off on both sites too. As I have feeling your webshot has this enabled and you been coding with register_globals off on your local server, or vise versa
[/quote]
Wildteen,

You were right - Register Globals on the hosted site is ON, it is OFF on the local site. I'll have to go read about register globals to figure out what this means.

Thanks for your help.
JRS
[!--quoteo(post=368712:date=Apr 25 2006, 10:57 PM:name=toplay)--][div class=\'quotetop\']QUOTE(toplay @ Apr 25 2006, 10:57 PM) [snapback]368712[/snapback][/div][div class=\'quotemain\'][!--quotec--]
FYI: Take a look at the session troubleshooting guide I wrote:

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=31047&view=findpost&p=157705\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...ndpost&p=157705[/a]
[/quote]
Toplay,
Thanks - that is very helpful.
JRS

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.