diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-06-25 10:07:06 -0300 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-06-25 10:07:06 -0300 |
commit | e5e355d06890b324df2ded707ca491f9539dd171 (patch) | |
tree | ec176a2a9eab58d9f0b7b661378f80442ca6a9b3 /app/Core/Session.php | |
parent | 60cc58c940537e299cee388d8b1d8c56e27e2d80 (diff) |
Merge pull-request #140 (several small fixes)
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'); |