Skip to content

Commit 7cc911d

Browse files
committed
Fix session cleanup call
1 parent 5aabd8c commit 7cc911d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/WebApp/Application.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ public function setPrincipal($principal, $persist = FALSE) {
209209
public function authenticate($id, $secret, $persist = FALSE) {
210210
if ($this->authentication != NULL) {
211211
$this->setPrincipal($this->authentication->authenticate($id, $secret), $persist);
212+
$this->sessionHandler->gc(3600);
212213
return $this->principal != NULL;
213214
}
214215
return FALSE;

src/WebApp/DataModel/SessionDAO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ public function create($object) {
4747
public function expire($maxlifetime) {
4848
$now = new Date(time(), WFW_TIMEZONE);
4949
$expiry = $now->toMysql(TRUE);
50-
$this->deleteBy(array('expiry_time', $expiry, '<'), array('persistent', 0));
50+
$this->deleteBy(array(array('expiry_time', $expiry, '<'), array('persistent', 0)));
5151
}
5252
}

0 commit comments

Comments
 (0)