title: Clear SSL client certificate state from JavaScript
body: <p>I'm using client certificates in SSL sessions to authenticate users, but I'm having a bit of a problem with cached sessions. (I have configured IIS to accept&mdash;not require&mdash;client certificates.)</p>
  
  <p>Normal situation:<br>
  A user accesses the page that asks for the certificate. The browser launches the certificate selector, the user selects the desired certificate (and enters a PIN if needed), and everything goes forward as it should.</p>
  
  <p>Situation where things don't work as expected:<br>
  A user accesses the page that asks for the certificate. The browser launches the certificate selector, and the user selects the desired certificate, but then cancels at the PIN dialog. The user is redirected to the previous page because no certificate was sent. The user tries to log in again, but the attempt automatically fails because the last SSL session was cached.</p>
  
  <p>I solved this in IE using <code>document.execCommand("ClearAuthenticationCache");</code>, but it still doesn't work in FF or Chrome because they don't support the method. Is there any way to solve this?</p>