Forum Moderators: phranque

Message Too Old, No Replies

logout from a protected dir

how to?

         

Anguz

11:16 pm on Feb 12, 2004 (gmt 0)

10+ Year Member



I found how to pass protect a directory using cpanel and also be able to set many users with different log/pass each

now, I'd like to know how to finish that session so that when leaving the computer, the server asks for login again, cause right now it doesn't after I got in

thx in advance!

marcs

5:48 am on Feb 13, 2004 (gmt 0)

10+ Year Member



If the password protection is .htaccess based then there is no way to "log out" as such (as far as I know). Exiting your browser and restarting it should work, but that is likely not what you are looking for.

Anguz

6:49 am on Feb 13, 2004 (gmt 0)

10+ Year Member



I think it's .htaccess, whatever cpanel uses

so there's no way to end the session?

dcrombie

10:43 am on Feb 13, 2004 (gmt 0)



If Explorer on Windows behaves the same way as the Mac version then it only supports one session per domain. So if you log in to an area of the site that requires a different username/password, the first session will close. Otherwise you will have to quit the browser.

A better way is to use cookies or a database entry in combination with PHP-HTTP-Authentication but that can get complicated.

bird

11:47 am on Feb 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's an extension for Mozilla/Firebird/Firefox which will delete the login data from the browser. But then, that's probably not a general solution to your problem... ;)

Anguz

11:58 am on Feb 13, 2004 (gmt 0)

10+ Year Member



thx for the replies... I guess the way it's working will be enough for what I need it

I thought about using a dabatabase for this, but I really don't need that much, so I'll keep it simple

=)