How can you log out from HTACCESS?

Messages
3,962
Edit My Images
Yes
I figured out how to set up htaccess but the problem is that you cant log out with it

is there a script to log out? I found the following which closes the window and forgets the details (maybe cookies?)

But, it doesnt actually close the window in Google Chrome, only IE

<head>
<script language="JavaScript" type="text/javascript">
<!--
function closewindow() {
self.opener = this;
self.close()
}
//-->
</script>
</head>

<body>
<a href="JavaScript: closewindow()">Close Window</a>
 
Last edited:
I figured out how to set up htaccess but the problem is that you cant log out with it

is there a script to log out? I found the following which closes the window and forgets the details (maybe cookies?)

But, it doesnt actually close the window in Google Chrome, only IE

<head>
<script language="JavaScript" type="text/javascript">
<!--
function closewindow() {
self.opener = this;
self.close()
}
//-->
</script>
</head>

<body>
<a href="JavaScript: closewindow()">Close Window</a>

No way to do this if you have used .htaccess with folders.. however, once the browser is closed, the user needs to enter in the password again. If they have their browser set to remember passwords, it will probably be remembered
 
No way to do this if you have used .htaccess with folders.. however, once the browser is closed, the user needs to enter in the password again. If they have their browser set to remember passwords, it will probably be remembered

Yes closing the browser to log out is what I want.

but the above code only works in IE

is there a more general way around this to work with all internet bits like chrome, IE, firefox etc?

Or a scrip to delete the login cookie
 
Back
Top