Handling Session Timeout in Windows authentication

Discussion in 'ASP .Net Security' started by jonefer, Feb 6, 2007.

  1. jonefer

    jonefer Guest

    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
     
    jonefer, Feb 6, 2007
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Do
    Replies:
    2
    Views:
    6,658
  2. bruce barker

    Re: ASPX Page Timeout - Session Timeout

    bruce barker, Jul 20, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    11,342
    ASP.Confused
    Jul 20, 2004
  3. RJN
    Replies:
    2
    Views:
    5,314
  4. =?Utf-8?B?Um9iSEs=?=
    Replies:
    4
    Views:
    5,819
    =?Utf-8?B?Um9iSEs=?=
    Apr 11, 2007
  5. Freddie
    Replies:
    0
    Views:
    324
    Freddie
    Jun 29, 2004
  6. Replies:
    2
    Views:
    456
    Kyle M. Burns
    Sep 21, 2007
  7. Sulaiman
    Replies:
    2
    Views:
    530
    Dominick Baier
    Oct 24, 2007
  8. Mark Probert

    Timeout::timeout and Socket timeout

    Mark Probert, Oct 6, 2004, in forum: Ruby
    Replies:
    1
    Views:
    1,578
    Brian Candler
    Oct 6, 2004
Loading...