Handling Session Timeout in Windows authentication

J

jonefer

Ever since updating my Website from VS 2003 to 2005, I began to notice that
my session variables become reset (expire) after 10-15 (minutes)

The solutions I read dealing with this timeout generally have to do with
'Forms Authentication' but I'm not using forms authentication.

I read that you can put the following code in Global.asax - (could someone
please specify exactly how to do this, I always get an 'Invalid application'
error-- but is this the best solution for my session variables expiring?)

Sub Session_Start(...)

If Session.IsNewSession Then

If Not IsNothing(Request.Headers("Cookie")) And
Request.Headers("Cookie").IndexOf("ASP.NET_SessionId") >= 0 Then
Response.redirect("timeout.htm")
End If

End If

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top