I have htaccess applied to some folder. When i open that folder using web browser then i get user/password prompt. If I enter wrong password , the i get some apache error.
But the problem i am getting is that even if i refresh the page i keep getting same error. Sometime i want to enter that again but keep getting same page without any user/password prompt. Looks like that user/password is stored in cache and it enetrs automatically.
is there any way to stop caching that details
That's probably at the specific web browser being used. In those situations, exiting the web browser completely and restarting it should do the trick.