Re: who's logged on / how to I find out about other sessions
| From: | Tom Carter | Date: | Mon, 23 Jul 2001 10:24:30 +0000 |
| Subject: | Re: who's logged on / how to I find out about other sessions | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10658@lists.php.net to get a copy of this message | ||
Hi Christian,
What most sites do is to keep track of the latest time that a user requested
a page (ie when a page is requested store the current time).
Then a definitiion of "logged-in" is made.... usually this is "has requested
a page in the last 30 minutes" so the query to count the users whose time of
last access was within 30 mins of now.
Hope this makes sense,
Tom
> Hi,
>
> I'm writing a bbs/messageboard system and am trying to figure out how to
tell
> what other users are logged on.
>
> I know I could store the info in a table in my login code but then how do
I
> find out if people are logged out
> with out making them actually use a logout button or the like.
>
> I was going to do it that way but I have noticed that phpnuke sites can
list
> the number of logged in sites etc;
> but their code is a little beyond me atm
>
> Is there a way to list other session vars ?
>
> any ideas welcome
>
> with thanks
>
> Christian
>
>
> Christian Cable
> ICT Assistant
> Careers Service; Lancaster University
> Tel: (01524) 594072 Fax: (01524) 592072
> http://www.lancs.ac.uk/staff/cable/
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>