Re: simple problem about authentication

From: Date: Wed, 26 Feb 2003 13:35:42 +0000
Subject: Re: simple problem about authentication
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-137224@lists.php.net to get a copy of this message
At 14:22 26.02.2003, Oliver Witt spoke out and said: --------------------[snip]-------------------- >if(isset($user) && isset($pw)){ >$user = ucwords(strtolower($user)); >$PHP_AUTH_USER = $user; >$PHP_AUTH_PW = $pw;} > >[more...] >And this works fine for just this page. Whenever I click on a link to a page >which includes the same file though, it echoes 'unauthorized'... --------------------[snip]-------------------- Sounds like you're using sessions... perhaps register_globals is off in your environment, so session variables are not registered? How do you set the "$user" and "$pw" variables? -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#137224) next »