Re: Login should not allow users to login if the application is logged in with the same login credentials

From: Date: Thu, 27 Aug 2009 13:07:11 +0000
Subject: Re: Login should not allow users to login if the application is logged in with the same login credentials
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-297362@lists.php.net to get a copy of this message
Balasubramanyam A wrote:
Hello, I've written a simple application, where users need to login to access the features of the application. I want to develop login system such that, if user is already logged in, the application should not allow the users to login with the same login credentials. How do I accomplish this? Regards, Balu
Just save the credentials, for a valid user, in a session and check to see if a new login submission matches. Be certain to lowercase everything so as to prevent a simple case change from appearing to be a different user.

« previous php.general (#297362) next »