Slight fix for sessions

This commit is contained in:
Bojidar Marinov
2016-08-15 15:19:53 +03:00
parent 150263227e
commit b9eca05a1d
2 changed files with 2 additions and 3 deletions

View File

@@ -14,8 +14,6 @@ if (PHP_SAPI == 'cli-server') {
require __DIR__ . '/../vendor/autoload.php';
session_start();
// Instantiate the app
$settings = require __DIR__ . '/../src/settings.php';
$local_settings = require __DIR__ . '/../src/settings-local.php';

View File

@@ -61,7 +61,8 @@ $container['utils'] = function ($c) {
// csrf guard
$container['csrf'] = function ($c) {
return new \Slim\Csrf\Guard;
session_start();
return new \Slim\Csrf\Guard;
};
// cookies