diff options
Diffstat (limited to 'app/Core/Session.php')
| -rw-r--r-- | app/Core/Session.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Core/Session.php b/app/Core/Session.php index af7a9123..f072350d 100644 --- a/app/Core/Session.php +++ b/app/Core/Session.php @@ -47,6 +47,12 @@ class Session ini_set('session.entropy_length', '32'); ini_set('session.hash_bits_per_character', 6); + // If session was autostarted with session.auto_start = 1 in php.ini destroy it, otherwise we cannot login + if (isset($_SESSION)) + { + session_destroy(); + } + // Custom session name session_name('__S'); |
