Re: simple problem about authentication

From: Date: Wed, 26 Feb 2003 15:03:33 +0000
Subject: Re: simple problem about authentication
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-137243@lists.php.net to get a copy of this message
Ernest E Vogelsinger schrieb: > 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? > no, im not using sessions and register globals is on. the variables user and pw are set by submitting a form (method="post"). that's where i expect the mistake to be. because as far as i know, the browser usually saves the credentials, at least the user name after authenticating. but it just doesn't seem to do so.... Olli

« previous php.general (#137243) next »