It’s totally possible to create a logout feature for your website! First, you have to understand a bit about how Website Access Manager works. This program uses .htaccess files for password protection, and when you use .htaccess files, the web browser is what controls whether your user is logged in. At this time, none of the major browsers have added a logout feature, but there is a way to work around this. With this method, you can create a logout link or button that automatically closes the browser window. To start, paste the following code in the head section of the password-protected HTML document:

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

This enables the browser to close the window when the "closewindow" link is clicked. Use this code to create this link, substituting "Log Out (Note: This will close your browser window)" with any text you like:

<a href="JavaScript: closewindow()">Log Out (This will close your browser window)</a>

Or, if you prefer to use an image, use this code:

<a href="JavaScript: closewindow()"> <img src="image.png"> </a>

There are a few problems with this method, namely that it works in Internet Explorer but not Firefox, and that it closes the open browser window, which might peeve some of your users For this reason, you may want to set any links to password protected areas to open in a new window.