[Catalyst] Preventing simultaneous logins

Bill Moseley moseley at hank.org
Wed Jul 23 21:09:29 BST 2008


On Wed, Jul 23, 2008 at 09:47:57PM +0200, Daniel McBrearty wrote:
> What I'd like to do is check if this user is already logged in at some
> other computer, and deny access if so. I guess that means :
> 
> 1. checking whether there is an existing session associated this username
> 2. Being sure that the associated session is cleared when the user hits 'logout'

And what happens if they never hit log out?  Or if their browser
crashes and then they try and log in again?

If you really need this feature, try it the other way around:  if
someone logs in then you invalidate their first session.

-- 
Bill Moseley
moseley at hank.org
Sent from my iMutt




More information about the Catalyst mailing list