aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-07-13 20:16:31 +0000
committerplegall <plg@piwigo.org>2011-07-13 20:16:31 +0000
commita4f8880e045d4dfdc9f4addf1a63ca2f53cd4744 (patch)
treefb993362ca3129281572950c4d0929b98393950d /include
parent50e1db0929cd11bd87a7a5573bfae1b6a72de8e4 (diff)
bug 2338 fixed: force purge on sessions table (each time a user gets connected)
git-svn-id: http://piwigo.org/svn/branches/2.2@11736 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-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 = '