Re: Session - to restrict same user from two logins

From: Date: Fri, 27 Jul 2001 02:55:56 +0000
Subject: Re: Session - to restrict same user from two logins
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59863@lists.php.net to get a copy of this message
on 7/26/01 11:06 AM, deco at rbr@netcabo.pt wrote: >> an easier way of doing this is to have a database of users with their >> password in the table and when they log on simply mark them logged using >> sum boolean variable. this will, cut down time. >> good luck!. >> and remeber ........ Have a nice day :) > > And when would you uncheck the boolean value? In theory, when the > session expires, but there's no event being triggered. Only solution would > be to check for active sessions periodically, or something like this... > Ideal solution would be for php to do it by itself when the session > expires.. > instead of a boolean you could use a timestamp and update it each time a page is loaded. then a cron job could come by periodically and delete sessions older than some specified time. -- mike cullerton

« previous php.general (#59863) next »