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
Return to the default flat view Create a new topic Submit Reply
clear_old_session bug ? [message #7757] Fri, 13 December 2002 16:11 Go to previous message
masterzen is currently offline  masterzen   France
Messages: 1
Registered: July 2002
Karma:
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
[Message index]
 
Read Message
Read Message
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: Thu Sep 19 21:25:06 GMT 2024

Total time taken to generate the page: 0.07486 seconds