[Phplib-users] Changing session ID
Brought to you by:
nhruby,
richardarcher
From: <li...@br...> - 2002-07-16 20:48:09
|
Probably a very simple one, but I can't seem to get it to work.... How can I specify a session ID? Specifically, I have a site (which I've mentioned before but have been distracted and so haven't finished yet) which exists over three domains. I want to share session data between these sites and my current approach to this is that I will have a 1x1 transparent gif from each of the other two domains on any page loaded from the third. This gif will actually be the output from a php script which will also instantiate a cookie based session for each of those domains with a session ID passed in the request for the gif. If a session exists for either of those other domains, its details will be switched over to the new session ID. I was under the impression that calling: $mysess->id($new_id); would do the trick but it doesn't seem to. Any pointers? cheers. James. |