cvs: pear /Auth_HTTP Auth_HTTP.php

From: Date: Sun, 25 Aug 2002 05:16:26 +0000
Subject: cvs: pear /Auth_HTTP Auth_HTTP.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5948@lists.php.net to get a copy of this message
markonen Sun Aug 25 01:16:26 2002 EDT Modified files: /pear/Auth_HTTP Auth_HTTP.php Log: If possible, choose the session id based on the user's auth credentials. Index: pear/Auth_HTTP/Auth_HTTP.php diff -u pear/Auth_HTTP/Auth_HTTP.php:1.6 pear/Auth_HTTP/Auth_HTTP.php:1.7 --- pear/Auth_HTTP/Auth_HTTP.php:1.6 Wed Jul 24 10:45:25 2002 +++ pear/Auth_HTTP/Auth_HTTP.php Sun Aug 25 01:16:26 2002 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth_HTTP.php,v 1.6 2002/07/24 14:45:25 mj Exp $ +// $Id: Auth_HTTP.php,v 1.7 2002/08/25 05:16:26 markonen Exp $ // require_once "Auth/Auth.php"; @@ -37,7 +37,7 @@ * @author Martin Jansen <mj@php.net> * @package Auth_HTTP * @extends Auth - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ */ class Auth_HTTP extends Auth { @@ -67,7 +67,8 @@ /** * Assign values from $PHP_AUTH_USER and $PHP_AUTH_PW - * to internal variables + * to internal variables and sets the session id based + * on them * * @global $PHP_AUTH_USER, $PHP_AUTH_PW */ @@ -82,6 +83,10 @@ if (isset($server['PHP_AUTH_PW']) && $server['PHP_AUTH_PW'] != "") { $this->password = $server['PHP_AUTH_PW']; } + + if (isset($this->username) && isset($this->password)) { + session_id(md5("Auth_HTTP".$this->username.$this->password)); + } } // }}}

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