Added proper session handling while in development mode
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user