Newsletter

KB Article

GP COM
Why does my password protected website prompt for username and password twice?

Why does my password protected website prompt for username and password twice?

Sometimes a user clicks on a link to a folder that is protected by password which the user is prompted for twice. If you have a folder that is password protected and you have a HTML link to it like so:

<a href="http://www.yourdomainn.dk/protected">To secure area</a>

The above link can cause a browser to need to see the linked folder and its pages as separate items, and thus prompt for the password when accessing the folder itself and subsequently also when accessing files in the folder. The solution is rather simple:

<a href="http://www.yourdomainn.dk/protected/">To secure area</a>

The last forward slash in the url to the secure folder makes the browser link it to the files in the folder, and thus reuse the username and password that is prompted for when accessing the folder the first time.


Category: Limit access