coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Makc666 on April 17, 2008, 03:59:06 PM

Title: user_lastvisit field is not being updated
Post by: Makc666 on April 17, 2008, 03:59:06 PM
If you look into Users (User manager) you can notice that "Last Visit" colum is not been updated for users who checked "Remember me" during Login.

So if user logged in the gallery with checked "Remember me" option and user_lastvisit was set to 2008-04-16 17:24:01
then user_lastvisit will not be updated during his next visits to the gallery.

user_lastvisit will be updated only if the user "Logout" and "Login" again.

P.S.
I found an old topic for this one without any reply:
http://forum.coppermine-gallery.net/index.php/topic,5822.0.html (http://forum.coppermine-gallery.net/index.php/topic,5822.0.html)
Title: Re: user_lastvisit field is not being updated
Post by: Joachim Müller on April 18, 2008, 08:01:37 AM
What's your proposal?
Title: Re: user_lastvisit field is not being updated
Post by: Makc666 on April 18, 2008, 08:48:30 AM
Quote from: Joachim Müller on April 18, 2008, 08:01:37 AM
What's your proposal?
I think that "Last Visit" means "Last Visit" and not "Last Login", so...
I think that we can update "Last Visit" when user make some actions.
In other words when he makes some normal actions like exploring the pages, for exaple opens index.php, thumbnails.php, displayimage.php
Or, maybe, when a session is created for him.
Or, maybe, when he is been authorised whrow cookie.
Title: Re: user_lastvisit field is not being updated
Post by: Joachim Müller on April 18, 2008, 08:58:53 AM
I'm aware of what would happen in an ideal world. My question is: what do you suggest code-wise?
Title: Re: user_lastvisit field is not being updated
Post by: Makc666 on April 21, 2008, 11:41:19 PM
Quote from: Joachim Müller on April 18, 2008, 08:58:53 AM
I'm aware of what would happen in an ideal world. My question is: what do you suggest code-wise?
If I understand you right, you want some new code from me, which will make what I am speaking about?
If I am right, I will try to throw that block for new in some near future...