p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: Close IIS Session from ASP...


Message #1 by "Robert Sindall" <rs@s...> on Thu, 6 Dec 2001 14:46:11 -0000
This is a multi-part message in MIME format.

------=_NextPart_000_006A_01C17E69.3CB11A70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Ok..

Triggered from Javascript?.

***JS CODE***
function DoLogout() {
location.href="/logout.asp"
}

function DoWarning() {
Warning.style.display="block";
setTimeout("DoLogout()", 300000); //300000 is 5 minutes
}

setTimeout("DoWarning()", 600000); //600000 is 10 minutes

*** ASP CODE ***
<%
Session.Abandon
response.redirect "http://www.somewhere.com/"
%>

ok




  Return to Index