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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to