projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed996b5
)
Ignores suid sessions when determining the cut-off date for removing old
author
Vincent Zanotti
<vincent.zanotti@m4x.org>
Sat, 4 Sep 2010 13:57:38 +0000
(15:57 +0200)
committer
Vincent Zanotti
<vincent.zanotti@m4x.org>
Sat, 4 Sep 2010 13:57:38 +0000
(15:57 +0200)
logs. This guarantees that at least two user sessions were kept.
Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
bin/cron/compliance.php
patch
|
blob
|
blame
|
history
diff --git
a/bin/cron/compliance.php
b/bin/cron/compliance.php
index
ee23dad
..
fab5436
100755
(executable)
--- a/
bin/cron/compliance.php
+++ b/
bin/cron/compliance.php
@@
-54,7
+54,7
@@
function discardExpiredSessions($userPerms, $retentionPeriod, $minimalBacklog) {
JOIN (SELECT a.uid,
(SELECT us.start
FROM log_sessions AS us
- WHERE us.uid = a.uid
+ WHERE us.uid = a.uid
AND (us.suid IS NULL OR us.suid = 0)
ORDER BY us.start DESC
LIMIT {?}, 1) AS no_discard_limit
FROM #x5dat#.accounts AS a