Hi
I have modified the code in file: "
inc_login_user.asp"
line: 162
'Read in the users ID number and whether they want to be automactically logged in when they return to the forum lngUserID = CLng(rsCommon("Author_ID")) strUsername = rsCommon("Username") strUserCode = rsCommon("User_code") 'modified code line 'For extra security create a new user code for the user ''strUserCode = userCode(strUsername) 'modified code line 'Save the new usercode back to the database ''rsCommon.Fields("User_code") = strUserCode 'modified code line ''rsCommon.Update 'modified code line
'Write a cookie with the User ID number so the user logged in throughout the forum 'Write the cookie with the name Forum containing the value UserID number Response.Cookies(strCookieName)("UID") = strUserCode
|
the modification made it possible for a user to login from 2 computers and stay logged in.
after it worked ok for a few weeks, i suddenly need to re-login every time i open the IE (no problems in FF)
it happened after i added a few validation rules to the "
inc_regiter.asp" file.
any sugesionts on what can cause this problem?
Edited by adrianv - 01 February 2006 at 2:45pm