Prihlaseni vydrzi 24h.

This commit is contained in:
severak 2020-05-26 12:38:58 +02:00
parent e29ec6f869
commit 013ae831dd
1 changed files with 5 additions and 1 deletions

View File

@ -104,7 +104,11 @@ require 'app.php';
// finally running the APP
session_start(); // TODO - nakonfit session
define('DAY_OF_SECONDS', 24 * 60 * 60);
ini_set('session.gc_maxlifetime', DAY_OF_SECONDS);
session_set_cookie_params(DAY_OF_SECONDS);
session_name('stela');
session_start();
$routeDispatcher = new FastRoute\Dispatcher\GroupCountBased($routeCollector->getData());
$request = new Nyholm\Psr7\ServerRequest($_SERVER['REQUEST_METHOD'], parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), getallheaders());