Session timeout in .config file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alien2_51

    #1

    Session timeout in .config file

    I have an ASP.Net application running one level above the root web server.
    The root web server is configured for a 60 min session timeout.
    If I omit the timeout setting in the web.config eg..{
    <sessionState
    mode="InProc"
    stateConnection String="tcpip=1 27.0.0.1:42424"
    stateNetworkTim eout="10"
    sqlConnectionSt ring="data source=127.0.0. 1;user id=sa;password= "
    cookieless="fal se"
    <!--***remove this line --- timeout="20" -->
    />
    }
    for the nested virtual, should I expect to inherit the session timeout from
    the parent, or retain the default (20 min)...?

    desired result: Nested virtual inherits the parents session timeout (60 min)

    ??


  • Egbert Nierop \(MVP for IIS\)

    #2
    Re: Session timeout in .config file

    "alien2_51" <dan.billow@n.o .s.p.a.m.monaco coach.com> wrote in message
    news:uzWsdrXTDH A.2004@TK2MSFTN GP11.phx.gbl...[color=blue]
    > I have an ASP.Net application running one level above the root web server.
    > The root web server is configured for a 60 min session timeout.[/color]
    Hi
    Q316448 sais that this attribute is about SECONDS not about minutes. And it
    is a per request timeout (between stateserver and webserver).
    When you use StateServer mode in session state attributes, you can specify
    an additional attribute, stateNetworkTim eout. This attribute specifies the
    number of seconds that a Transmission Control Protocol/Internet Protocol
    (TCP/IP) network request can be idle before the request times out.
    So this attribute
    < timeout="60" -->
    Should not be removed :)


    --
    compatible web farm Session replacement for Asp and Asp.Net


    [color=blue]
    > If I omit the timeout setting in the web.config eg..{
    > <sessionState
    > mode="InProc"
    > stateConnection String="tcpip=1 27.0.0.1:42424"
    > stateNetworkTim eout="10"
    > sqlConnectionSt ring="data source=127.0.0. 1;user[/color]
    id=sa;password= "[color=blue]
    > cookieless="fal se"
    > <!--***remove this line --- timeout="20" -->
    > />
    > }
    > for the nested virtual, should I expect to inherit the session timeout[/color]
    from[color=blue]
    > the parent, or retain the default (20 min)...?[/color]

    Yes, it should inherit. Unless it has it's own application settings.
    [color=blue]
    > desired result: Nested virtual inherits the parents session timeout (60[/color]
    min)[color=blue]
    >
    > ??
    >
    >[/color]

    Comment

    • Egbert Nierop \(MVP for IIS\)

      #3
      Re: Session timeout in .config file

      "alien2_51" <dan.billow@n.o .s.p.a.m.monaco coach.com> wrote in message
      news:uzWsdrXTDH A.2004@TK2MSFTN GP11.phx.gbl...[color=blue]
      > I have an ASP.Net application running one level above the root web server.
      > The root web server is configured for a 60 min session timeout.[/color]
      Hi
      Q316448 sais that this attribute is about SECONDS not about minutes. And it
      is a per request timeout (between stateserver and webserver).
      When you use StateServer mode in session state attributes, you can specify
      an additional attribute, stateNetworkTim eout. This attribute specifies the
      number of seconds that a Transmission Control Protocol/Internet Protocol
      (TCP/IP) network request can be idle before the request times out.
      So this attribute
      < timeout="60" -->
      Should not be removed :)


      --
      compatible web farm Session replacement for Asp and Asp.Net


      [color=blue]
      > If I omit the timeout setting in the web.config eg..{
      > <sessionState
      > mode="InProc"
      > stateConnection String="tcpip=1 27.0.0.1:42424"
      > stateNetworkTim eout="10"
      > sqlConnectionSt ring="data source=127.0.0. 1;user[/color]
      id=sa;password= "[color=blue]
      > cookieless="fal se"
      > <!--***remove this line --- timeout="20" -->
      > />
      > }
      > for the nested virtual, should I expect to inherit the session timeout[/color]
      from[color=blue]
      > the parent, or retain the default (20 min)...?[/color]

      Yes, it should inherit. Unless it has it's own application settings.
      [color=blue]
      > desired result: Nested virtual inherits the parents session timeout (60[/color]
      min)[color=blue]
      >
      > ??
      >
      >[/color]

      Comment

      Working...