Jump to content

Archived

This topic is now archived and is closed to further replies.

lark

Question about sessions persisting across domains

Recommended Posts

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!

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

×

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.