Skip to content

Commit 9745dc6

Browse files
committed
Releasing 0.9.1
2 parents 90daf97 + 7cc911d commit 9745dc6

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

application-example.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@
1818
'en' => 'English',
1919
),
2020
'pageMap' => array(
21-
'/' => 'MyWebApp\\Page\\',
21+
'/' => 'MyWebApp\\Page\\',
22+
'/login.html' => 'WebApp\\BootstrapTheme\\LoginPage',
2223
),
2324
),
2425
),
26+
'pageLinks' => array(
27+
'login' => '/login.html',
28+
'logout' => '/index.html',
29+
'forget_password' => '/forgot-password.html',
30+
),
2531
'database' => array(
2632
'host' => 'my-db-host',
2733
'port' => 3306,

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "A ready-to-use framework to write web applications in PHP",
44
"type": "library",
55
"keywords": ["framework","bootstrap"],
6+
"license" : "LGPL-3.0-or-later",
67
"authors": [
78
{
89
"name": "TechnicalGuru",

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)