Re: Re: Detecting user logout.

From: Date: Wed, 03 Oct 2001 07:23:20 +0000
Subject: Re: Re: Detecting user logout.
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-69718@lists.php.net to get a copy of this message
Well, I personnally use a SQL db into which I insert some information about the connected users (IP,LOGIN if member or "visitor" if not, MD5 session id -'cause I cannot use PHP4 sessions, my provider's got php3 - and unix epoch DATE). Each time a user sees a page, this user's DATE field is updated in the db, and rows where DATE is older than 10 minutes are deleted, so inactive members are not displayed anymore in the "connected members" list .... As well, I use this table to implement sessions to authenticate users, using cookies and MD5 strings. If you want a script .... Tell me !!! (°- Nayco, //\ Nayco@netcourrier.com v_/_ http://nayco.free.fr ----- Original Message ----- From: Alexander Deruwe <a@deruwe.be> To: <php-general@lists.php.net> Sent: Wednesday, October 03, 2001 3:21 AM Subject: Re: [PHP] Re: Detecting user logout. | -----BEGIN PGP SIGNED MESSAGE----- | Hash: SHA1 | | On Tuesday 02 October 2001 18:11, tonyz wrote: | > why bother charting logouts. use cookies that expires so you know that | > they will eventually lose access and need to login again. | | Yes, but then I can't show a list of logged in users (for administration | purposes). | | Alexander | | | -----BEGIN PGP SIGNATURE----- | Version: GnuPG v1.0.6 (GNU/Linux) | Comment: For info see http://www.gnupg.org | | iD8DBQE7umgFySJLuRUx8aQRAo7+AJkB0GD6i+0mNIfsaoakw/WP1klyagCfZ8l6 | QB3ijCXziMhlhHyjDBgu/rM= | =Tlms | -----END PGP SIGNATURE----- | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net | For additional commands, e-mail: php-general-help@lists.php.net | To contact the list administrators, e-mail: php-list-admin@lists.php.net | | |

« previous php.general (#69718) next »