Re: msession - giving me a hard time
| From: | CPT John W. Holmes | Date: | Thu, 13 Nov 2003 20:16:14 +0000 |
| Subject: | Re: msession - giving me a hard time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169555@lists.php.net to get a copy of this message | ||
From: "Guillaume Dupuis" <guillaume.dupuis@sand.com>
> Now, I am testing the interaction of 2+ servers working together. From
> SERVERA I create and echo the my SID using "echo session_start(); echo
> session_id();echo $SID;", and then I follow a link (within the same
browser
> session) to SERVERB and then do the exact same 3 calls.
>
> They give me different $SID ???
When you go from SERVERA to SERVERB, you do not carry over the same session
ID, though. SERVERB, not seeing a session id passed to it, starts it's own
session. You need to pass SID in the URL when linking to the different
servers. No way around this. The session id can be carried in the cookies
once you're operating on the same server, but when going from one server to
another, you must manually pass it.
<a href="http://SERVERB?<?=SID?>">SERVERB</a>
---John Holmes...