X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Basic authentication cache is not being cleared from the firefox browser with using JavaScript code when tries to override Uname,PWD and with response Http 401

  • No replies
  • 3 have this problem
  • 51 views
Posted

Hi, I am trying to implement logout functionality for Basic authentication for our internal application with the below script.

 function clearCache(){
  var ua= window.navigator.userAgent;
  if(ua.indexOf("MSIE") > 0){
  document.execCommand("ClearAuthenticationCache");
  return true;
  }else{
  $.ajax({
    url: '<%=request.getContextPath()%>/pages/PeleLogout.jsp',
    username: ' ',
    password: ' ',
    statusCode: { 401: function() { //alert('Logged Out') 
    } 
    }
    });
    return true;
  }
  }

This function is working properly when deployed in my local tomcat server, but it is not working after deploying in WebSphere6.1 server..

Modified by cor-el

Additional System Details

Installed Plug-ins

  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.6
  • VLC media player Web Plugin 2.0.2
  • Microsoft Lync 2010 Meeting Join Plug-in
  • Adobe Shockwave for Director Netscape plug-in, version 11.6
  • 4.0.50826.0
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Shockwave Flash 10.0 r45
  • Office Authorization plug-in for NPAPI browsers

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0

More Information