1
Answer

How cockie time out like session time out in web.config file

Asma Siddiqua

Asma Siddiqua

9y
522
1
How cockie time out like session time out in web.config file?
have any coockie states in web.config file?
I tried like below in javascript but it not working at all opened pages, its working for one tab.
 
<script language='javascript' type="text/javascript">
function SessionTimeOuts() {
window.setTimeout("RedirectToLogin();", 1200000);
}
function RedirectToLogin() {
document.cookie = "StudentCookies=; expires=00:00:01; path=/";
alert(document.cookie);
window.location.href = '../LoginPage.aspx'
}
</script>
 <body onload="SessionTimeOuts();">

Answers (1)