Author |
Topic  |
|
Martha2Mary
Junior Member
 
New Zealand
250 Posts |
Posted - 06 April 2001 : 16:10:37
|
Hi Huw,
After having this implemented on my Forum for a day or two, there is a little bug that I have noticed. I have set my Forum Timezone to GMT, and mine to New Zealand, and although most of the time the times are displayed in my own timezone, I find that about 2 times a day it shows them in GMT, and I have to got to my Profile and hit the 'submit' button to get it showing up correctly. Is this some kind of cookie bug, or is there something possibly wrong in the Profile area where settings are not being remembered correctly? Hope you can help!
Thanks, Martha2Mary
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
|
Martha2Mary
Junior Member
 
New Zealand
250 Posts |
Posted - 07 April 2001 : 20:05:10
|
Okay, I have found out that it is whenever I close my browser that I am having this problem. So, I deleted all my cookies, then logged in at my Forums with the 'save password' box checked in the hope that that would help, but it didn't. The problem is still happening. I am sure that somewhere in the admin options there used to be a place where I could set when cookies expire, but for the life of me I can't find it now! Maybe that is the problem, I don't know, but would appreciate some help.
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 07 April 2001 : 20:22:47
|
cookie expiration is in the DoCookies section of inc_functions.asp
Huw is taking a little break and will be out until Tuesday |
 |
|
Martha2Mary
Junior Member
 
New Zealand
250 Posts |
Posted - 07 April 2001 : 21:09:15
|
Thanks for letting me know, Richard. In order to fix this problem, what would I need to change the "DoCookies" to in inc_functions.asp?
This is what I have currently:
sub DoCookies(fSavePassWord) if strSetCookieToForum = 1 then Response.Cookies(strUniqueID & "User").Path = strCookieURL else Response.Cookies(strUniqueID & "User").Path = "/" end if Response.Cookies(strUniqueID & "User")("Name") = strDBNTFUserName Response.Cookies(strUniqueID & "User")("Pword") = Request.Form("Password") Response.Cookies(strUniqueID & "User")("Cookies") = Request.Form("Cookies") if fSavePassWord = "true" then Response.Cookies(strUniqueID & "User").Expires = dateAdd("d", 30, strForumTimeAdjust) end if Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTFUserName)
end sub
sub ClearCookies() if strSetCookieToForum = 1 then Response.Cookies(strUniqueID & "User").Path = strCookieURL else Response.Cookies(strUniqueID & "User").Path = "/" end if Response.Cookies(strUniqueID & "User") = "" 'Response.Cookies(strUniqueID & "User").Expires = dateadd("d", -2, strForumTimeAdjust) end sub
Your help is appreciated!
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 10 April 2001 : 05:52:20
|
Martha2Mary
The problem is in the code you added for my mod, look for any instances of the "DayLightSaving" and "LocalBias" cookies, the prefixes should be strCookieURL and not strUniqueID
|
 |
|
|
Topic  |
|
|
|