|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
need SINGLE allowable login
I have to implement a web login for my company's website that allows only one login per password / id. I have a couple of ideas how to implement this but if someone has had prior experience, please let me know.
thanks chris |
|
#2
|
|||
|
|||
|
for example. If you shared your login and password to a friend. If you were allready logged in to the system and your friend tried to log in, it would deny him from loging in.
thanks chris |
|
#3
|
||||
|
||||
|
There's a few ways of doing this.
One is to use the Application object. In it you'd store a list (either a dictionary, array or text-string) of the currently logged in users. The other would be to add a bit (true/false) field "loggedin" to your user table, or create a "loggedin" table, and maintain the logged in states thru the DB. Purely personal preference... tho i'd prolly go with the Application object... easier to code :P Also, don't forget you'll need to code a logout script. You will need to use the Session.End() method to manually log out a user after the session time's out, if the user does not trigger the script themselves. Check out this article for info on the Application object, and tracking currently logged in users. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > need SINGLE allowable login |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|