Re: [Webcollab-users] WebCollab sessions and other questions
Brought to you by:
andrewsimpson
|
From: Mark D. A. <md...@di...> - 2003-12-12 03:15:06
|
> Yes, I've had a few comments about that previously. I should move the
> /includes/security.php timeouts into config.php. The other two aren't
> so critical. /setup/includes/security.php is only used during setup,
> when a short timeout is good since you're playing with system setup.
> The other one isn't timeout, it just shows recent logins, and older
> logins.
FYI in addition to /includes/security.php there is this code in index.php
that would have to be made consistent:
if(db_result(@db_query("SELECT COUNT(*) FROM logins
WHERE
session_key='".safe_data($_COOKIE["webcollab_session"])."'
AND lastaccess > (now()-INTERVAL
".$delim."1 WEEK".$delim.")" ) ) == 1 ) {
(I changed the original 1 HOUR to 1 WEEK above, as i was getting
too annoyed with the timeout).
-mda
|