2005-12-13, 11:48 AM
Hey guys,
i know this: when a user logs out then in the database's table users it is written the time that the user left in the lastvisit field (more or less).
That is the value that is displayed the next time he logs in in the welcome panel and it is also used for displaying the new posts.
Here is the problem now.
The "lastvisit" value changes many times when i am logged in the forum and that's why many times when i click on the new posts link i get "no new posts".
Probably that has something toi do also with the session (or the cookie).
Can someone tell me how can i solve this problem, i.e. the lastvisit value to change only if the user is inactive the last 2-3-5 etc. hours?
thanks
i know this: when a user logs out then in the database's table users it is written the time that the user left in the lastvisit field (more or less).
That is the value that is displayed the next time he logs in in the welcome panel and it is also used for displaying the new posts.
Here is the problem now.
The "lastvisit" value changes many times when i am logged in the forum and that's why many times when i click on the new posts link i get "no new posts".
Probably that has something toi do also with the session (or the cookie).
Can someone tell me how can i solve this problem, i.e. the lastvisit value to change only if the user is inactive the last 2-3-5 etc. hours?
thanks