Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

control user login

Status
Not open for further replies.

antonyb

MIS
Aug 23, 2002
35
0
0
MY
Hi,

how could i control that person for being login
twice , if already login other people using his same
username and password will be reflected or couldn't login due to the same username and password at the same time.

can someone help on this matter? Pls....

thanks
antony
 
hi,

u can by adding a status field in the database table ... after a successful login change the flag to "Y" and each time the user logins check for the value if "Y" then display whatever u want to...

hope this helps , else write back

[cheers]
Niraj [noevil]
 
another way is to declare an application object, when the user logs in add the name to the object
if instr(Application(&quot;Users&quot;),username)<0 then
Application(&quot;Users&quot;)=Application(&quot;Users&quot;)+username+&quot;///&quot;
else
response.write &quot;Already Logged in.&quot;
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top