Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Handling Session Timeout in Windows authentication

Thread Tools

Handling Session Timeout in Windows authentication

Posts: n/a
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_Session Id") >= 0 Then
End If

End If

End Sub
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
Windows re-authentication in ASP.NET using C# after session timeout Freddie ASP .Net Security 0 06-29-2004 07:01 AM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM
web.config session timeout and forms authentication timeout Do ASP .Net 2 11-23-2003 02:27 PM