Author |
Topic |
|
nyquist
Starting Member
Italy
6 Posts |
Posted - 02 May 2004 : 17:24:18
|
Hi everybody, i've noticed that the value of the MEMBERS -> M_LASTHEREDATE is updated when the login is done. If i understood correctly the sequence of routine calls to set the M_LASTHEREDATE value is
- login (inc_header.asp)
- doCookies (inc_func_common.asp)
- ReadLastHereDate (inc_func_common.asp)
- UpdateLastHereDate (inc_func_common.asp)
Now this imply that a post written after a login will result a NEW post also for the next login. I mean: you login, someone (or you) makes a post. That's new for now. You read it, then you logout. If you login again that post should be old, but you will see it as a new post
Now, i was trying to change this behaviour so i wanted to set a new value for M_LASTHEREDATE when the logout is done. I supposed the right place was the sub ClearCookies (inc_func_common), but it doesn't work. I've tried with: UpdateLastHereDate DateToStr(strForumTimeAdjust),UserName but that doesn't seem to work.
Can someone please point me in the right direction?
Thanks in advance
Nyquist
|
|
nyquist
Starting Member
Italy
6 Posts |
Posted - 03 May 2004 : 09:41:55
|
never mind, solved. For interesteds: in inc_func_common -> sub ClearCookies() at the beginning write: strMyForumTimeAdjust = DateAdd("h", strTimeAdjust , Now()) strMyUserName = Request.Cookies(strUniqueID & "User")("Name") UpdateLastHereDate DateToStr(strMyForumTimeAdjust),strMyUserName |
|
|
|
Topic |
|
|
|