Merge pull-request #140 (several small fixes)

This commit is contained in:
Frédéric Guillot
2014-06-25 10:07:06 -03:00
parent 60cc58c940
commit e5e355d068
20 changed files with 58 additions and 36 deletions

View File

@@ -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');