cvs: pear /Auth Auth.php

From: Date: Tue, 31 Aug 2004 06:48:23 +0000
Subject: cvs: pear /Auth Auth.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23517@lists.php.net to get a copy of this message
yavo Tue Aug 31 02:48:23 2004 EDT Modified files: /pear/Auth Auth.php Log: Fix setSessionName, update internal session reference also http://cvs.php.net/diff.php/pear/Auth/Auth.php?r1=1.92&r2=1.93&ty=u Index: pear/Auth/Auth.php diff -u pear/Auth/Auth.php:1.92 pear/Auth/Auth.php:1.93 --- pear/Auth/Auth.php:1.92 Mon Aug 30 05:46:45 2004 +++ pear/Auth/Auth.php Tue Aug 31 02:48:22 2004 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.92 2004/08/30 09:46:45 yavo Exp $ +// $Id: Auth.php,v 1.93 2004/08/31 06:48:22 yavo Exp $ // define('AUTH_IDLED', -1); @@ -33,7 +33,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.92 $ + * @version $Revision: 1.93 $ */ class Auth { @@ -469,13 +469,16 @@ * If you are using multiple instances of PEAR::Auth * on the same domain, you can change the name of * session per application via this function. + * This will chnage the name of the session variable + * auth uses to store it's data in the session * * @param string New name for the session * @return void * @access public */ function setSessionName($name = 'session') { - $this->_sessionName = '_auth'.$name; + $this->_sessionName = '_auth_'.$name; + isset($_SESSION) ? $this->session =& $_SESSION[$this->_sessionName] : $this->session =& $GLOBALS['HTTP_SESSION_VARS'][$this->_sessionName] ; } /**

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