Re: session control with PEAR?
| From: | Justin Patrin | Date: | Mon, 29 Nov 2004 17:09:06 +0000 |
| Subject: | Re: session control with PEAR? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15902@lists.php.net to get a copy of this message | ||
On Mon, 29 Nov 2004 12:44:49 -0000, Eduardo Gargiulo
<ejg-php.pear@ar.homelinux.org> wrote:
> I want to implement a method to logout an authenticated user when he/she opens
> a new browser window (kill session on new window). I'm using Auth and DB
> packages. Is this possible using a pear package? which? how?
>
AFAIK, no. The session will close when the browser windows is closed
and some browsers may create a new session when you open a new
instance, but you can't count on that. There is no reliable way I know
of to detect a new browser window opening. I also don't know how you
can switch sessions while leaving the first intact. Even if you could,
most of the time the first session would basically be dropped as the
two browser windows still share the same cookies.
--
Justin Patrin