FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » clear_old_session bug ?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
clear_old_session bug ? [message #7757] Fri, 13 December 2002 16:11 Go to next message
masterzen is currently offline  masterzen   France
Messages: 1
Registered: July 2002
Karma: 0
Junior Member
Hi,

I've installed FUDForum (sorry this is an old version) 2.2.3 some times ago and noticed that the sessions in the ses tables didn't seem to be removed properly.

After a look at the code in cookies.inc.t I found the following st
atement (this is the same in the latest version):

function clear_old_sessions()
{
	q("DELETE FROM {SQL_TABLE_PREFIX}ses WHERE time_sec<".($tm_sample-$GLOBALS['COOKIE_TIMEOUT'])." OR (time_sec<".(__request_timestamp__-$GLOBALS['SESSION_TIMEOUT']).&qu ot; AND sys_id!=0)");
}


Grepping through the code, I couldn't find the $tm_sample variable definition anywhere, thus the sessions are removed only if there is a SESSION_TIMEOUT (and sys_id!=0), but never when the cookie reaches its timeout.

So I think this is a bug...
I hope this will help you chasing the bug !

Masterzen
Re: clear_old_session bug ? [message #7760 is a reply to message #7757] Fri, 13 December 2002 16:26 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: v2.3.5 bug in import datadump
Next Topic: {admin_control_row_all} <-- this section cannot be edited
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 04:38:56 GMT 2024

Total time taken to generate the page: 0.02331 seconds