Bad idea:You server will be full of unused sessions. And eventually will run
out of memory.
Here is the solution.
1. Create and ASPX renewSession.aspx that outputs transaprent gif 1x1 pixel.
2. In every page have a folowing HTML
<IMG name="renewSession" height=1 src="/Root/images/transparentpixal.gif"
width=1 border=0>
3. Add to every page folowing Javascript.
<script language="Javascript">
window.setInterval("renewSession()", 600000);
function renewSession()
{
document.images("renewSession").src = /Root/renewSession.aspx?par=" +
Math.random();
}
</script>
So basically an idea that browser will request renewSession.aspx every 10
minutes thus preventing session expiration.
George.
"Mircea Pleteriu" <mp*******@asp-gmbh.de> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi all,
Does anybody know how to configure the session so that the session will
never expire?