ASP.NET Session TimeOut problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rajesh.jain25@gmail.com

    ASP.NET Session TimeOut problem

    Hi,
    I am facing a problem of automatic session timeout problem and
    automatic session_end event fired.


    Case1: As I have analyzed I get to know that the default session
    timeout is 20 in web.config, If I reassign the session timeout at
    login page other than the time which is defined at web.config(20 Min.)
    then automatic session_end (in global.aspx.cs) event fired.
    Why automatic this event is fired??


    Case2: If I remove session timeout from Web.config, Machine.config ,
    IIS (Enabled Session outTime) , then by default it takes 20 Min. , If I

    Reassign at loginPage the session timeout rather than 20 min. , then
    Session_End event fired.


    [color=blue]
    >From where it taking 20Min. default and why Automatic session_end event[/color]


    calling??

  • Alvin Bruney - ASP.NET MVP

    #2
    Re: ASP.NET Session TimeOut problem

    The default is 20 minutes being set in the machine config file overridable
    in the web config file. For your session end event, have a look at this
    article: http://support.microsoft.com/default...b;en-us;555082

    --
    Regards,
    Alvin Bruney [MVP ASP.NET]

    [Shameless Author plug]
    The Microsoft Office Web Components Black Book with .NET
    Now Available @ www.lulu.com/owc
    Forth-coming VSTO.NET - Wrox/Wiley 2006
    -------------------------------------------------------



    <Rajesh.jain25@ gmail.com> wrote in message
    news:1131377102 .478225.293040@ z14g2000cwz.goo glegroups.com.. .[color=blue]
    > Hi,
    > I am facing a problem of automatic session timeout problem and
    > automatic session_end event fired.
    >
    >
    > Case1: As I have analyzed I get to know that the default session
    > timeout is 20 in web.config, If I reassign the session timeout at
    > login page other than the time which is defined at web.config(20 Min.)
    > then automatic session_end (in global.aspx.cs) event fired.
    > Why automatic this event is fired??
    >
    >
    > Case2: If I remove session timeout from Web.config, Machine.config ,
    > IIS (Enabled Session outTime) , then by default it takes 20 Min. , If I
    >
    > Reassign at loginPage the session timeout rather than 20 min. , then
    > Session_End event fired.
    >
    >
    >[color=green]
    > >From where it taking 20Min. default and why Automatic session_end event[/color]
    >
    >
    > calling??
    >[/color]


    Comment

    • Doug

      #3
      RE: ASP.NET Session TimeOut problem

      this is a bug, if you try to set the timeout, anywhere other than
      session_start, it kills the session

      "Rajesh.jain25@ gmail.com" wrote:
      [color=blue]
      > Hi,
      > I am facing a problem of automatic session timeout problem and
      > automatic session_end event fired.
      >
      >
      > Case1: As I have analyzed I get to know that the default session
      > timeout is 20 in web.config, If I reassign the session timeout at
      > login page other than the time which is defined at web.config(20 Min.)
      > then automatic session_end (in global.aspx.cs) event fired.
      > Why automatic this event is fired??
      >
      >
      > Case2: If I remove session timeout from Web.config, Machine.config ,
      > IIS (Enabled Session outTime) , then by default it takes 20 Min. , If I
      >
      > Reassign at loginPage the session timeout rather than 20 min. , then
      > Session_End event fired.
      >
      >
      >[color=green]
      > >From where it taking 20Min. default and why Automatic session_end event[/color]
      >
      >
      > calling??
      >
      >[/color]

      Comment

      Working...