이 기능을 사용할 수는 있지만 Internet Explorer에서만 작동합니다. FireFox 또는 기타 알고있는 기능이 아닙니다.
<input id="LogoutButton" type="button" value="Log Out" />
<script>
$(document).ready(function() {
$("#LogoutButton").bind("click", function() {
try {
if (window.XMLHttpRequest) {
alert("You have been logged off from the website");
document.execCommand("ClearAuthenticationCache", "false");
window.location = "http://www.stackoverflow.com"
if (top.location != location) {
top.location.href = ".";
}
window.location = "http://www.stackoverflow.com"
}
}
catch (e) {
alert("This feature requires IE 6.0 SP1 or above. " + "Please close all browser windows in order to complete the logout process.");
}
});
});
</script>
종류에 따라 Windows 인증 응용 프로그램을 더 까다롭게 테스트 할 수 있습니다. – ProfK
도메인에 속하지 않는 장치 (여기서는 Android 타블렛과 같은)에서 사이트에 액세스하는 경우 AD 로그인은 사용자 ID 및 암호를 묻는 양식 로그인과 유사하게 작동합니다. 이 경우 사용자가 로그 아웃하도록하는 것이 좋습니다. –