[PHPLIB] Warning - Same session in two browsers? From: Simon Sadler (simon.sadler <email protected>)
Date: 11/23/99

I wrote concerning this a while back but got no replies so I've rephrased
it...

session->mode = "cookie"
session->lifetime = 0 - session cookies
Browser = IE5

In setup.inc I create some objects of my classes and register them with the
session. They are persistent the whole time a user is logged on and contain
vital info.

On my site there are links that open a page in a new browser window. I'm
using <a target="new window"...> to do this. When this new window is opened
it seems that the session from the original window is inherited as all the
registered variables are the same. Firstly, can anyone confirm that the
cookie is inherited? Now the main question is, what happens when either of
the windows is closed?

Whatever the answer, something is wrong as occasionally my registered
objects become blank. At first I thought that the session cookie might be
deleted when any of the windows were closed but I now doubt that because the
log in screen never appears after this problem occurs. Would I be right in
thinking that if the cookie did go missing I'd have to re-log in?

I suppose that it must be down to PHPLIB itself. Would there be trouble if
two browsers were sharing the same session? They would both be accessing and
saving to one session record. Would that cause any trouble? I know it
shouldn't but there may be something obscure here.

Obviously, everything works fine if restricted to one window.

Please help. I believe this is an important point and something that we
should all be aware of. If I haven't been clear enough please ask anything
you need to.

Thanks in advance,

Simon.

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.