cvs: pear /LiveUser LiveUser.php

From: Date: Thu, 27 Oct 2005 09:09:09 +0000
Subject: cvs: pear /LiveUser LiveUser.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35900@lists.php.net to get a copy of this message
lsmith Thu Oct 27 05:09:09 2005 EDT Modified files: /pear/LiveUser LiveUser.php Log: - set status after logging out not before http://cvs.php.net/diff.php/pear/LiveUser/LiveUser.php?r1=1.117&r2=1.118&ty=u Index: pear/LiveUser/LiveUser.php diff -u pear/LiveUser/LiveUser.php:1.117 pear/LiveUser/LiveUser.php:1.118 --- pear/LiveUser/LiveUser.php:1.117 Wed Oct 26 06:31:48 2005 +++ pear/LiveUser/LiveUser.php Thu Oct 27 05:09:06 2005 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: LiveUser.php,v 1.117 2005/10/26 10:31:48 arnaud Exp $ + * @version CVS: $Id: LiveUser.php,v 1.118 2005/10/27 09:09:06 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -922,17 +922,17 @@ if ($this->getProperty('expireTime') > 0 && ($this->getProperty('currentLogin') + $this->getProperty('expireTime')) < $now ) { - $this->_status = LIVEUSER_STATUS_EXPIRED; $this->dispatcher->post($this, 'onExpired'); $this->logout(false); + $this->_status = LIVEUSER_STATUS_EXPIRED; // Check if maximum idle time is reached. } elseif ($this->getProperty('idleTime') > 0 && isset($_SESSION[$this->_options['session']['varname']]['idle']) && ($_SESSION[$this->_options['session']['varname']]['idle'] + $this->getProperty('idleTime')) < $now ) { - $this->_status = LIVEUSER_STATUS_IDLED; $this->dispatcher->post($this, 'onIdled'); $this->logout(false); + $this->_status = LIVEUSER_STATUS_IDLED; } } }

« previous php.pear.cvs (#35900) next »