coppermine-gallery.com/forum

No Support => Feature requests => Topic started by: Sebbit on August 13, 2004, 04:22:33 AM

Title: [solved] last login date...
Post by: Sebbit on August 13, 2004, 04:22:33 AM
The last login date in the user list only changes when the user was logged out before.
But if a user stays always logged in via cookie, the date never changes...
So, how is it possible to show the date of the last VISIT instead of the last login?
Title: Re: last login date...
Post by: Nibbler on August 13, 2004, 12:31:51 PM
Just a matter of adding a query into the bottom of your init.inc.php file

if (USER_ID) db_query("UPDATE {$CONFIG['TABLE_USERS']} SET user_lastvisit = NOW() WHERE user_id= '$user_id'");
Title: Re: last login date...
Post by: Sebbit on August 14, 2004, 12:09:03 AM
thanks!
Title: Re: [solved] last login date...
Post by: Joachim Müller on August 14, 2004, 06:51:58 PM
@Nibbler and dev team: should we add this to the core code?

GauGau