Jump to content


Photo

Session variable contains blank data on hosted site


  • Please log in to reply
4 replies to this topic

#1 JRS

JRS
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 25 April 2006 - 04:46 AM

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

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 25 April 2006 - 09:07 AM

Could you check also whether register_globals 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

#3 JRS

JRS
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 26 April 2006 - 02:44 AM

[!--quoteo(post=368334:date=Apr 25 2006, 05:07 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 25 2006, 05:07 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Could you check also whether register_globals 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

#4 toplay

toplay
  • Staff Alumni
  • Advanced Member
  • 973 posts

Posted 26 April 2006 - 02:57 AM

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]

#5 JRS

JRS
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 26 April 2006 - 04:44 AM

[!--quoteo(post=368712:date=Apr 25 2006, 10:57 PM:name=toplay)--][div class=\'quotetop\']QUOTE(toplay @ Apr 25 2006, 10:57 PM) View Post[/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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users