Iam just starting out. I created a password directory, How do I implement a logout?
Thanks
Iam just starting out. I created a password directory, How do I implement a logout?
Thanks
Re you using .htaccess or another solution for protecting your directory(ies)?
I used the "web protect" function from cpanel. I see an .htaccess file. I just started out, is there a better way?
Thanks
The web protect/.htaccess feature is quite secure.
However, once a browser authenticates, that browser can visit any number of sites and return to the authenticated site without having to re-authenticate, so long as it has not been closed.
So, a logout would require closing the browser.
A snippet of javascript like the following could work for most visitors.
Code:<form> <input type=button onClick='window.opener=self;window.close()' value='Logout'> </form>