alecpl
2010-10-08 ca1f564598614f62fa8b210c414a919491176865
- Performance fix for case when session_lifetime=0, fixed indentation


1 files modified
5 ■■■■ changed files
program/include/rcube_session.php 5 ●●●● patch | view | raw | blame | history
program/include/rcube_session.php
@@ -114,7 +114,10 @@
      $newvars = $this->serialize(array_merge(
        (array)$a_oldvars, (array)$this->unserialize($vars)));
      if ($this->keep_alive>0) {
      if (!$this->lifetime) {
        $timeout = 600;
      }
      else if ($this->keep_alive>0) {
    $timeout = min($this->lifetime * 0.5, 
               $this->lifetime - $this->keep_alive);
      } else {