http://mr-w.cn/
I have been troubled by this problem!! It is finally solved perfectly now!! Dedicated to those friends who need to remember the login information in the front desk! (This method has been verified by my use, and there is no security risk that the backend will continue to log in as the administrator of Xingling Dan said... The backend is still the same as the original version, and the effect is only for the front desk!!)
Thanks to Wady and IFairy...
Please don’t just read but not reply, but not come back to my blog... Replies are virtues! Be kind to behave!!
Here is the modification method...
1. First modify common/checkUser.asp (mainly this!!)
Put the following original code
[Copytoclipboard]CODE:
'Check MD5 password verification, convert old account password verification method
dimstrSalt
strSalt=randomStr(6)
memLogin("mem_salt")=strSalt
memLogin("mem_LastIP")=getIP()
memLogin("mem_lastVisit")=now()
memLogin("mem_hashKey")=HashKey
memLogin("mem_Password")=SHA1(Password&strSalt)
Response.Cookies(CookieName)("memName")=memLogin("mem_Name")
Response.Cookies(CookieName)("memHashKey")=HashKey
ifRequest.Form("KeepLogin")="1"thenResponse.Cookies(CookieName).Expires=Date+365
memLogin.Update
ReInfo(0)="Login successfully"
ReInfo(1)="<b>"&memLogin("mem_Name")&"</b>, welcome your return.<br/><ahref=""default.asp"">Click to return to homepage</a>"