I really want to know the usage of realm. http://en.wikipedia.org/wiki/Basic_access_authentication said
Existing browsers retain authentication information until the tab or browser is closed or the user clears the history.[1] HTTP does not provide a method for a server to direct clients to discard these cached credentials. This means that there is no effective way for a server to "log out" the user without closing the browser or using sessions in the URL.
in my coding
res.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
res.setHeader("WWW-Authenticate", "Basic realm=\"Alfresco\"");
So the site requests authentication based on realm. Once it requests, username and password is saved in somewhere, and until the browser cache or browsing history is removed, this information is saved.
My question is Is there a way to clear such credential in server using servlet? Any help is greatly appreciated!!!