PDA

View Full Version : User returning


filburt1
03-23-2003, 04:32 PM
What code (line numbers would be best) in the unholy mess that is sessions.php gets executed when a user visits the forums after having his cookie time out from inactivity?

filburt1
03-24-2003, 12:16 AM
How much wood could a woodchuck chuck if a woodchuck could chuck wood?

Chris Gwynne
03-24-2003, 02:02 AM
Today at 02:16 AM filburt1 said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=372338#post372338)
How much wood could a woodchuck chuck if a woodchuck could chuck wood?

Even if a woodchuck could chuck wood, why would a woodchuck chuck wood? :p
sorry, couldn't resist.

filburt1
03-24-2003, 03:14 PM
Okay, now that we got that out of the way, surely one of the 32,039 members here knows the answer to the first question...

Zzed
03-24-2003, 07:21 PM
Why would a wood chuck want to log into a VBB? :D

But seriously, I think this is what you are looking for. It is on line 308 in sessions.php.


// see if user has been here recently
if ($ourtimenow - $bbuserinfo['lastactivity'] > $cookietimeout) {
vbsetcookie("bblastvisit",$bbuserinfo['lastactivity']);
$bbuserinfo['lastvisit']=$bbuserinfo['lastactivity'];
}


P.S. Version 2.2.9 that is. ;)

filburt1
03-24-2003, 09:13 PM
Thanks, will investigate.

filburt1
03-25-2003, 02:30 PM
345 in 2.3.0 RC3, BTW.