Re: List of sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks all for explanations.
I'll try to use callback functions.

Tony.

On 5/4/06, Joe Wollard <joe.wollard@xxxxxxxxx> wrote:

If you store your sessions in a database then your could gain a little
mode control over your session, but I think what you're asking is if there's
a way to tell if a user has closed the browser thus killing the session on
their side. If that's what you're asking then the answer is not going to lie
strictly with PHP as the server has no way to ping a user's browser. A quick
hack off the top of my head might be to find a creative way of using the
onBeforePageUnload() (or w/e it is) javascript function along with frames.

Anyway, you can check out php.net for more details on how to use a
database for session storage: http://www.php.net/manual/en/function.session-set-save-handler.php


Cheers,
- Joe



On 5/4/06, Tony Aldrich <tony.aldrich@xxxxxxxxx> wrote:
>
> Well, I mean visitors of site. They can open it in several windows or in
> several browsers. I understand that each browser on a machine will be a
> session (in simple explanation). And for all of them I create some info
> in
> database. Then they close browser. I must clean up unused info.
> That's why I want to query alive sessions. Or query their death time
> (timeout).
> I thought of something like
>
> $sess=get_session_list();
>
> or
>
> $isalive=is_session_alive($session_id);
>
> Thanks.
>
>
>
> On 5/4/06, Gerry D <gdanen.spam@xxxxxxxxx> wrote:
> >
> > Can you have more than 1 session?
> >
> > On 5/2/06, Tony Aldrich <tony.aldrich@xxxxxxxxx> wrote:
> > > Good day,
> > > Does anybody know how to get a list of current sessions?
> > > I need to clear some database rows that where associated with some
> SID.
> > > Can it be done without probing of maxlifetime?
> >
>
>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux