Re: msession - giving me a hard time
| From: | Chris Shiflett | Date: | Thu, 13 Nov 2003 20:24:09 +0000 |
| Subject: | Re: msession - giving me a hard time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169561@lists.php.net to get a copy of this message | ||
--- "CPT John W. Holmes" <holmes072000@charter.net> wrote:
> > 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.
Are SERVERA and SERVERB in the same cluster? I might be misunderstanding
the situation here, but I thought this was the point of msession - to
provide a seamless session data store among a cluster of servers without
needing to store the session data in a database.
I would think that whether the session ID was passed on the URL, in a
cookie, or anything else, it would be sent with each request, because the
browser doesn't distinguish between the servers - the load balancer
handles all of the requests.
Chris
=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp