Log in

View Full Version : Last date/time force update


Jawelin
06-14-2002, 01:45 PM
Last visit/activity values seem to be updated only when creating a new session.
This way, if I'm always logged in or my session doesn't expire, that values aren't updated.

First, is this right ?

Well. I created some hacks based upon lastvisit/lastactivity to perform something (actually they checks if some forum light bulb is 'on'). So I would force sometimes the update of that values, for example when visiting certain forums (forumdisplay.php)

What should be the cleanest way to do so ?
Where ?

Thank you very much.
Bye

Admin
06-14-2002, 02:13 PM
The values are updated when you click "Mark all forums read". Look at the code in member.php for that action.

But I wouldn't recommend doing it for every page load, since after I first visit the forumhome all threads/forums will be marked as read.