From e5e355d06890b324df2ded707ca491f9539dd171 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 25 Jun 2014 10:07:06 -0300 Subject: Merge pull-request #140 (several small fixes) --- app/Core/Session.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/Core/Session.php') 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'); -- cgit v1.2.3