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
Link to comment
Share on other sites

[!--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
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

[!--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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.