Sharing PHP session data between domains

I had a few comments on my Secure PHP sessions post that I wrote almost a year ago. So, you run HTTP on one domain, and HTTPS on a different one, and need to share the information between them?

I must say, I have done almost no research on this. But if you at the same time as you change the session ID, you create an extra cookie with the new session id for the other domain aswell. I would assume that you will be able to pick up the session data on that domain too.

Tags:

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><pre><blockquote>
  • Lines and paragraphs break automatically.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].

More information about formatting options