merge r11736 from branch 2.2 to trunk

bug 2338 fixed: force purge on sessions table (each time a user gets connected)


git-svn-id: http://piwigo.org/svn/trunk@11737 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2011-07-13 20:16:50 +00:00
parent cfabea6edc
commit aefd941d75
+3
View File
@@ -1131,6 +1131,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 = '