在common下:
打开CACHE.ASP
找到:
Response.Cookies(CookieName)("memRight") = StatusCode
在下面插入:
If DateDiff("d",Date(),Request.Cookies(CookieName)("exp"))>0 Then
Response.Cookies(CookieName).Expires = Date + DateDiff("d",Date(),Request.Cookies(CookieName)("exp"))
End If
打开CHECKUSER.ASP,找到
If Request.Form("KeepLogin") = "1" Then Response.Cookies(CookieName).Expires = Date+365
注意,有两处,全部替换成:
If Request.Form("KeepLogin") = "1" Then
Response.Cookies(CookieName).Expires = Date+365
Response.Cookies(CookieName)("exp") = DateAdd("d", 365, date())
End If
OK了。其原理就是在重新打开页面的时候cookies.expires被重写为空了。
原文来自pj论坛:
http://bbs.pjhome.net/thread-42078-1-1.html