Asma Siddiqua

Asma Siddiqua

  • NA
  • 23
  • 5.7k

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

Jun 24 2015 6:00 AM
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)