1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-06 06:07:31 +02:00

Version 1.1.7 Improve Session Management

This commit is contained in:
Sebastian
2018-06-04 23:09:26 +02:00
parent 86366dd2bb
commit 089ee04dc0
6 changed files with 18 additions and 11 deletions

View File

@@ -103,15 +103,15 @@ $container['assets'] = function($c)
* DECIDE FOR SESSION *
************************/
$session_segments = array('setup/', 'tm/');
$session_segments = array('setup', 'tm/', '/setup', '/tm/');
$path = $container['request']->getUri()->getPath();
$container['flash'] = false;
$container['csrf'] = false;
foreach($session_segments as $segment)
{
{
if(substr( $path, 0, strlen($segment) ) === $segment)
{
{
/* start a session */
ini_set( 'session.cookie_httponly', 1 );
ini_set('session.use_strict_mode', 1);
@@ -140,8 +140,6 @@ foreach($session_segments as $segment)
{
return new \Slim\Flash\Messages();
};
break;
}
}