Re: detecting browser close or change of url

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

 



On 07/02/2003 10:06 AM, Jamie Saunders (phpdev@mediacdcards.net) wrote:

> What I want to do is disable people logging into the same user account at the
> same time.

If this is your goal, try reversing your way of thinking. Instead of
worrying about what happens when a user logs out (or doesn't), concentrate
on what happens when the user logs in. For example you could remove previous
sessions for a particular user upon successful login. To remove abandoned
sessions, use a separate cron-controlled script in conjunction with PHP's
built-in session garbage collector.

Pablo


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux