We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feca178 commit c04545fCopy full SHA for c04545f
src/Session.php
@@ -57,12 +57,14 @@ public static function getPrefix()
57
/**
58
* If session has not started, start sessions.
59
*
60
+ * @param int $LifeTime → Lifetime of session in seconds
61
+ *
62
* @return bool
63
*/
- public static function init()
64
+ public static function init($LifeTime = 0)
65
{
66
if (self::$sessionStarted == false) {
- session_set_cookie_params(0);
67
+ session_set_cookie_params($LifeTime);
68
session_start();
69
70
return self::$sessionStarted = true;
0 commit comments