JRS Posted April 25, 2006 Share Posted April 25, 2006 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 sitesession.save_path /tmp /tmp session.use_trans_sid On On On the local systemsession.save_path novalue novaluesession.use_trans_sid Off OffAlso the tmp directory was missing on the hosted site, so I createdone, not sure about the path.Would anyone have any ideas on what might be happening to cause this problem?Thanks in advanceJRS Quote Link to comment https://forums.phpfreaks.com/topic/8333-session-variable-contains-blank-data-on-hosted-site/ Share on other sites More sharing options...
wildteen88 Posted April 25, 2006 Share Posted April 25, 2006 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 Link to comment https://forums.phpfreaks.com/topic/8333-session-variable-contains-blank-data-on-hosted-site/#findComment-30448 Share on other sites More sharing options...
JRS Posted April 26, 2006 Author Share Posted April 26, 2006 [!--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 Quote Link to comment https://forums.phpfreaks.com/topic/8333-session-variable-contains-blank-data-on-hosted-site/#findComment-30814 Share on other sites More sharing options...
toplay Posted April 26, 2006 Share Posted April 26, 2006 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 Link to comment https://forums.phpfreaks.com/topic/8333-session-variable-contains-blank-data-on-hosted-site/#findComment-30818 Share on other sites More sharing options...
JRS Posted April 26, 2006 Author Share Posted April 26, 2006 [!--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 Quote Link to comment https://forums.phpfreaks.com/topic/8333-session-variable-contains-blank-data-on-hosted-site/#findComment-30840 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.