[solved] last login date... [solved] last login date...
 

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

[solved] last login date...

Started by Sebbit, August 13, 2004, 04:22:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sebbit

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?

Nibbler

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'");

Sebbit


Joachim Müller

@Nibbler and dev team: should we add this to the core code?

GauGau