Skip to content

Commit 10d656a

Browse files
committed
Added $cookieLifetime property
Added $cookieLifetime property so the developer can set the cookie lifetime himself by adding it to the config file
1 parent db24d9a commit 10d656a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

components/UserConfig.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ class UserConfig extends User
2020
* @inheritdoc
2121
*/
2222
public $enableAutoLogin = true;
23-
23+
24+
/**
25+
* @inheritdoc
26+
*/
27+
public $cookieLifetime = 2592000;
28+
2429
/**
2530
* @inheritdoc
2631
*/
@@ -54,4 +59,4 @@ protected function afterLogin($identity, $cookieBased, $duration)
5459
parent::afterLogin($identity, $cookieBased, $duration);
5560
}
5661

57-
}
62+
}

0 commit comments

Comments
 (0)