Q
Q
qovalenko2017-05-01 16:05:28
Apache HTTP Server
qovalenko, 2017-05-01 16:05:28

What remains in the browser cache when authorizing through Apache?

There is authorization through htaccess

AuthName "Authentication"
AuthType Basic
AuthUserFile /.htpasswd
require valid-user

Neither COOKIEs nor session are created during authorization.
How does the server understand that the user has logged in?
And how do I log out of my account?
header('WWW-Authenticate: Basic realm="Авторизация"');
header('HTTP/1.0 401 Unauthorized');

If you send the title, of course, a window will pop up asking you to enter a username and password, but if you refresh the page, then the authorization remains

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qovalenko, 2017-05-02
@qovalenko

The guys suggested: the data is stored in the header cache of the browser

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question