Advanced search  


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.

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.


  • 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 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:
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


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

Modify bridge/, 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.
Pages: [1]   Go Up

Page created in 0.073 seconds with 19 queries.