Search code examples
javascriptbasic-authentication

Javascript clean cache to clear Basic Auth credentials


I am trying to make a logout with basic authentication. I am wondering, if there is any possibility to clean client's browser cache via JavaScript? Are there any alternative ways to calling logout webservice?


Solution

  • That is not possible with JavaScript for security reasons, logout normally would just delete whatever it has created, which is normal behavior.