I've tried the following ( to add a new key to a cookie when the user leaves) but it doesn't work - any ideas?<BR><BR>Sub session_OnEnd<BR><BR>Response.Cookies("mydata")("t ime") = now()<BR><BR>End Sub<BR><BR>Also - doesn't a session end when the browser is closed and not when the URL changes??
I could be wrong but I dont think that will work because by default the session ends 20 minutes after there has been no activity from the session user. so if the user leaves your site and 20 minutes later the session on end function tries to write the cookie, to what system will it get written
I could be wrong, but I don't think you can use Response in an OnEnd script.<BR><BR>This is annoying, since I'm also looking for a way of storing the last time a user visits a site so that I can automatically display information that was created since their visit.<BR><BR>Has anyone solved this or worked around it at all?