aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/functions_user.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 5706b3165..dedd35f0f 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -1102,6 +1102,9 @@ function auto_login() {
*/
function try_log_user($username, $password, $remember_me)
{
+ // we force the session table to be clean
+ pwg_session_gc();
+
global $conf;
// retrieving the encrypted password of the login submitted
$query = '