alecpl
2009-04-10 942069969cfd95784f872b3bef2cc6323fc55c3d
program/include/session.inc
@@ -5,7 +5,7 @@
 | program/include/session.inc                                           |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland                 |
 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | PURPOSE:                                                              |
@@ -125,12 +125,12 @@
    return false;
  }
  if ($rcmail->config->get('enable_caching'))
    rcmail_message_cache_gc();
  // just delete all expired sessions
  $DB->query("DELETE FROM " . get_table_name('session') . "
    WHERE changed < " . $now);
    WHERE changed < " . $DB->fromunixtime(time() - $maxlifetime));
  if ($rcmail->config->get('enable_caching'))
    rcmail_cache_gc();
  rcmail_temp_gc();