Hello,
Is this kind of code much used for authentication?
...
if (!isset($_SERVER["PHP_AUTH_USER"])) {
header('WWW-Authenticate: Basic realm="Log in"');
header("HTTP/1.0 401 Unauthorized");
....
I have tried to play with it and downloaded a lot of codeexamples. I find
it hard
to control when I am logged in and when I am logged out. I can log out and
it seems
like it also, but when I do a refresh on my page am am logged in again.
Maybe I have missed something and that is why I dont get it to work
properly.
But would it be better to create my own form for logging in and have more
control? I guess
I would have control doing that.
- Terje
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/