Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

how to take session data with you when you switch domains


Go to End


2 Posts   2518 Views

Avatar
Nicolaas

Forum Moderator, 224 Posts

6 December 2008 at 11:23am

Hi Gurus

Session data is bound to a domain - in our site, however, we want to switch the user from http://secure.mysite.com to http://nonsecure.mysite.com without loosing the session data. The sites are the same, but everytime we switch the session data is lost. Is there an easy way to save it in the database, retrieve it or get the session ID?

Thanks a million

Nicolaas

Avatar
Fuzz10

Community Member, 791 Posts

6 December 2008 at 11:41pm

Make sure the client cookies are being set for the / domain instead of the xxxx.mysite.com subdomain and it'll probably work.

Check the current cookies settings with the Firefox developer toolbar or firebug...