user_lastvisit field is not being updated user_lastvisit field is not being updated
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

user_lastvisit field is not being updated

Started by Makc666, April 17, 2008, 03:59:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Makc666

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

Joachim Müller


Makc666

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.

Joachim Müller

I'm aware of what would happen in an ideal world. My question is: what do you suggest code-wise?

Makc666

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...