Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Mimicing the "Last Here Date"
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MorningZ
Junior Member

USA
169 Posts

Posted - 23 August 2001 :  21:27:28  Show Profile  Visit MorningZ's Homepage  Send MorningZ an AOL message
Has anyone deciphered how the forum's "last here date" works, i want to include that in the rest of my site...

i am thinking that setting a Session Variable and if that session doesnt exist then write to the DB the last here date and set the variable..

that sound about right ?



gor
Retired Admin

Netherlands
5511 Posts

Posted - 24 August 2001 :  00:50:35  Show Profile  Visit gor's Homepage
Sound about right.
The retrieving and storing is done by the function ReadLastHereDate(UserName) in inc_functions.asp
An example of how it is used you can find in active.asp:

if IsEmpty(Session(strCookieURL & "last_here_date")) then
Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTUserName)
end if

Last thing to remember is that it is stored in the format YYYYMMMDDhhmmss

Pierre
Join a Snitz Mailinglist
Go to Top of Page

MorningZ
Junior Member

USA
169 Posts

Posted - 24 August 2001 :  15:32:17  Show Profile  Visit MorningZ's Homepage  Send MorningZ an AOL message
thanks Pierre.. and no sweat on the date format, i use the DateToStr and StrToDate functions on anything i do like a religeon!



Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07