|
 |
asp_discuss thread: Same User with multiple logins
Message #1 by akifnoor@y... on Wed, 27 Feb 2002 11:31:05
|
|
Hay Guys,
I have developed a site and from our client we have a requirement that
at any time only one user can be log in to the server with the same
user name.
it means
same user can't log in from different machines.
if one user is log in from one machine it can't be
log in from any other machine till first user is logged off.
if any body have some idea plz share with me .
thanks
akif noor
Message #2 by "Craig Flannigan" <ckf@k...> on Wed, 27 Feb 2002 11:30:59 -0000
|
|
Just a thought ...
Assuming you're using a database to store usernames and passwords, could you
not have a flag against the username in your Users table?
When the user logs on, you set the flag (yes/no field) to True. If that user
attempts a logon and that flag is true, access is denied, otherwise if the
flag is clear, it allows the user to log on.
You'll need to enforce that the users logout through a script, rather than
simply closing the browser window othewise the flag will never get cleared.
The only way around this is to use some Javascript which detects the window
closing and runs an ASP script to remove the flag for the user.
HTH
Craig.
-----Original Message-----
From: akifnoor@y... [mailto:akifnoor@y...]
Sent: 27 February 2002 11:31
To: asp_discuss
Subject: [asp_discuss] Same User with multiple logins
Hay Guys,
I have developed a site and from our client we have a requirement that
at any time only one user can be log in to the server with the same
user name.
it means
same user can't log in from different machines.
if one user is log in from one machine it can't be
log in from any other machine till first user is logged off.
if any body have some idea plz share with me .
thanks
akif noor
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of
Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
Message #3 by "Hema R." <hema.r@s...> on Thu, 28 Feb 2002 12:03:41 +0530
|
|
Hi,
The "flag" way is the best to go around with.
However to trap a user who does not go around the usual LOGOUT process
you could add a database updation in the SESSION_ONEND in the global.asa
regards
Hema
> -----Original Message-----
> From: Craig Flannigan [SMTP:ckf@k...]
> Sent: Wednesday, February 27, 2002 5:01 PM
> To: asp_discuss
> Subject: [asp_discuss] RE: Same User with multiple logins
>
>
> Just a thought ...
>
> Assuming you're using a database to store usernames and passwords, could
> you
> not have a flag against the username in your Users table?
>
> When the user logs on, you set the flag (yes/no field) to True. If that
> user
> attempts a logon and that flag is true, access is denied, otherwise if the
> flag is clear, it allows the user to log on.
>
> You'll need to enforce that the users logout through a script, rather than
> simply closing the browser window othewise the flag will never get
> cleared.
> The only way around this is to use some Javascript which detects the
> window
> closing and runs an ASP script to remove the flag for the user.
>
> HTH
> Craig.
>
> -----Original Message-----
> From: akifnoor@y... [mailto:akifnoor@y...]
> Sent: 27 February 2002 11:31
> To: asp_discuss
> Subject: [asp_discuss] Same User with multiple logins
>
>
> Hay Guys,
> I have developed a site and from our client we have a requirement that
> at any time only one user can be log in to the server with the same
> user name.
>
> it means
>
> same user can't log in from different machines.
>
> if one user is log in from one machine it can't be
> log in from any other machine till first user is logged off.
>
> if any body have some idea plz share with me .
> thanks
> akif noor
> $subst('Email.Unsub').
>
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service on behalf of
> Kingfield Heath Ltd. For further information visit
> http://www.star.net.uk/stats.asp
>
>
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service on behalf of
> Kingfield Heath Ltd. For further information visit
> http://www.star.net.uk/stats.asp
>
> $subst('Email.Unsub').
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************
|
|
 |