1
0

Added proper session handling while in development mode

This commit is contained in:
2017-03-26 15:28:33 +02:00
parent 55b8b75c0e
commit 45db7e7b93
4 changed files with 19 additions and 6 deletions

View File

@ -12,8 +12,13 @@
* Jelmer Hinssen
*/
// Create session
session_start();
/**
* Session fix for development
*/
if (session_save_path() === "") {
ini_set('session.save_path', realpath(__DIR__ . '/../tmp'));
}
/**
* Check if the script is running in CLI mode