Jump to content


Photo

Question about sessions persisting across domains


  • Please log in to reply
3 replies to this topic

#1 lark

lark
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 08 September 2006 - 06:55 PM

I have a site that uses sessions for user logins. It works fine as long as the user stays in the domain from which they logged in. But if they switch at some point between just the domain mydomain.com to www.mydomain.com (or vice-versa), the session is lost. Is there a workaround for this?

Thanks!

#2 phporcaffeine

phporcaffeine
  • Members
  • PipPipPip
  • Advanced Member
  • 361 posts
  • LocationOhio, USA

Posted 08 September 2006 - 07:00 PM

You need to look at the gpc_max_lifetime in the .ini file because the session shouldn't die just because you navigate from the domain to another domain, UNLESS you have your gpc_max_lifetime set to do so.
Thanks,

Ryan Huff
President & Founder, MyCodeTree
support@mycodetree.com | http://mycodetree.com

#3 lark

lark
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 08 September 2006 - 07:04 PM

It doesn't die. If you go back to the domain you logged in from, the session is still there. It just doesn't communicate between mydomain.com and www.mydomain.com

#4 lark

lark
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 22 September 2006 - 07:02 PM

Any thoughts on this one?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users