cvs: pear /Auth Auth.php

From: Date: Tue, 20 Nov 2001 10:56:58 +0000
Subject: cvs: pear /Auth Auth.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1384@lists.php.net to get a copy of this message
mj Tue Nov 20 05:56:58 2001 EDT Modified files: /pear/Auth Auth.php Log: * Fix bug in logout() Index: pear/Auth/Auth.php diff -u pear/Auth/Auth.php:1.12 pear/Auth/Auth.php:1.13 --- pear/Auth/Auth.php:1.12 Mon Nov 19 08:51:29 2001 +++ pear/Auth/Auth.php Tue Nov 20 05:56:58 2001 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.12 2001/11/19 13:51:29 mj Exp $ +// $Id: Auth.php,v 1.13 2001/11/20 10:56:58 mj Exp $ // @@ -48,7 +48,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.12 $ + * @version $Revision: 1.13 $ */ define("AUTH_IDLED", -1); @@ -405,7 +405,7 @@ /** * Logout function * - * This function clears any auth tokes in the currently + * This function clears any auth tokens in the currently * active session */ function logout() @@ -413,7 +413,8 @@ $this->username = ""; $this->password = ""; - session_unregister('auth'); + $GLOBALS['HTTP_SESSION_VARS']['auth'] = ""; + session_unregister("auth"); } // }}}

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