stealth86 Posted March 5, 2008 Share Posted March 5, 2008 I'm working on an intranet site that uses NTLM authentication. Authentication is handled with the mod_auth_sspi module for apache. It works fine, but the browser caches the authenticated session until you manually clear it or shut down the browser. Is there any good way to clear this cache from code? I've seen a java script call that will clear all authenticated sessions from IE, but I'd really like to only remove the one. I've also seen a bit of javascript code to try and insert bogus information to the cache, but this seems pretty unreliable. Is there a way to clear a single entry out of the authentication cache using php? (Firefox/IE) More fundamentally, are there better libraries for apache (or php) to do NTLM with? (I run apache in Windows.) Thanks! Link to comment https://forums.phpfreaks.com/topic/94573-ntlm-authentication-clear-authenticated-sessions/ Share on other sites More sharing options...
cooldude832 Posted March 5, 2008 Share Posted March 5, 2008 if its a php session ($_SESSION) you can clear it by saying <?php session_start(); $_SESSION['CLEARME'] = ""; ?> Cookies can be set to delete Also you can set your page headers to be no-cache to help Link to comment https://forums.phpfreaks.com/topic/94573-ntlm-authentication-clear-authenticated-sessions/#findComment-484270 Share on other sites More sharing options...
stealth86 Posted March 5, 2008 Author Share Posted March 5, 2008 if its a php session ($_SESSION) you can clear it by saying <?php session_start(); $_SESSION['CLEARME'] = ""; ?> Cookies can be set to delete Also you can set your page headers to be no-cache to help NTLM doesn't actually use cookies or PHP sessions . Also, its not a problem that individual pages are cached, its a problem that the users credentials are cached and there doesn't seem to be a way to delete these from PHP. I ran across a bug report on this issue in Firefox, and it seems like this just might be impossible. Can anyone confirm or deny this? Link to comment https://forums.phpfreaks.com/topic/94573-ntlm-authentication-clear-authenticated-sessions/#findComment-484293 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.