Hi,
Try with this code, But this is not going to check your user name correct or not,
after this if he login successfully, set LoginHistoryStatus ='Y' then only other user can not login same name.
qq3 = "select * From LoginHistory Where LoginHistorySessionID='"&Request.form
("name") & "' and LoginHistoryStatus = 'Y' "
Set rs=con.Execute(qq3)
if rs.RecordCount => 1 then
Response.write "User r already Logged in"
else
end if
surendran
(Anything is Possible)
http://ssuren.spaces.msn.com