Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Cookie change the timeout setting  (Read 2473 times)

0 Members and 1 Guest are viewing this topic.

Yabba

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Cookie change the timeout setting
« on: October 10, 2006, 07:52:21 am »

All Gurus,

I have this issue that the menu "Users/Memberlist" is not showing the correct last visit. I have read the topic http://forum.coppermine-gallery.net/index.php?topic=14718.0 but saw that its out of date and no longer supported.

Is there a mod for the cookies that support 149?

I have also tried onlinetoday pluging but it has a big tolerance in the logging, but that i will take up in an other topic.
In this one i really would like to have correct information in the "Users/Memberlist" menu.

Pretty related to: http://forum.coppermine-gallery.net/index.php?topic=37054.0
Logged
We all cannot be pro on coding. (If so all professional programmers schould be unemployed)
Fortunately the rest of us are pro's on other stuff at least this applies to me

Nibbler

  • Guest
Re: Cookie change the timeout setting
« Reply #1 on: October 10, 2006, 12:33:18 pm »

Modify bridge/coppermine.inc.php, find

Code: [Select]
return ($id) ? array($id, $pass) : false;

change to

Code: [Select]
if (!empty($id)){
$sql =  "UPDATE {$this->usertable} SET user_lastvisit = NOW() WHERE user_id = $id";
cpg_db_query($sql, $this->link_id);
}
                       
return ($id) ? array($id, $pass) : false;

This does not appear to have anything to do with the title of your thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 20 queries.