forked from Business/AccountHub
Add renew session cookie on page load
This commit is contained in:
parent
cd9ebb461e
commit
95c5d54b04
@ -16,6 +16,8 @@ $session_length = 60 * 60; // 1 hour
|
|||||||
session_set_cookie_params($session_length, "/", null, false, true);
|
session_set_cookie_params($session_length, "/", null, false, true);
|
||||||
|
|
||||||
session_start(); // stick some cookies in it
|
session_start(); // stick some cookies in it
|
||||||
|
//// renew session cookie
|
||||||
|
setcookie(session_name(), session_id(), time() + $session_length);
|
||||||
//
|
//
|
||||||
// Composer
|
// Composer
|
||||||
require __DIR__ . '/vendor/autoload.php';
|
require __DIR__ . '/vendor/autoload.php';
|
||||||
@ -133,7 +135,6 @@ function isValidEmail($email) {
|
|||||||
return filter_var($email, FILTER_VALIDATE_EMAIL);
|
return filter_var($email, FILTER_VALIDATE_EMAIL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hashes the given plaintext password
|
* Hashes the given plaintext password
|
||||||
* @param String $password
|
* @param String $password
|
||||||
|
Loading…
x
Reference in New Issue
Block a user