Session timeout in .config file

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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"
    stateConnectionString="tcpip=127.0.0.1:42424"
    stateNetworkTimeout="10"
    sqlConnectionString="data source=127.0.0.1;user id=sa;password="
    cookieless="false"
    <!--***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)

    ??


    alien2_51 Guest

  2. Similar Questions and Discussions

    1. Session Timeout
      Hi, You can control when the session end by using the Session_onEnd event in global.asax. But when the session expired the user won’t make any...
    2. Web.config timeout
      The user has indicated that the application seems to be kicking her out, even though she is sure that she is submitting a form faster than every 30...
    3. Can I set the Web.config <forms> element timeout value progmatically?
      I am using Windows Forms authentication in my ASP.NET app. In Web.Config, I would like to set the timeout value in the <forms> element in C# code...
    4. Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config
      I had many ASP.NET web applications that I created before I had to rebuild my machine. After a fresh install of XP Pro, VS.NET 2003, etc, I now...
    5. config file: a) what Module ? b) conditionals in config (for multiple hosts)
      Hi, a) I am looking for a module to handle config files. There are a number of these modules, like AppCconig. Any consensus about The Right...
  3. #2

    Default Re: Session timeout in .config file

    "alien2_51" <dan.billow@n.o.s.p.a.m.monacocoach.com> wrote in message
    news:uzWsdrXTDHA.2004@TK2MSFTNGP11.phx.gbl...
    > 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.
    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, stateNetworkTimeout. 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
    [url]http://www.nieropwebconsult.nl/asp_session_manager.htm[/url]

    > If I omit the timeout setting in the web.config eg..{
    > <sessionState
    > mode="InProc"
    > stateConnectionString="tcpip=127.0.0.1:42424"
    > stateNetworkTimeout="10"
    > sqlConnectionString="data source=127.0.0.1;user
    id=sa;password="
    > cookieless="false"
    > <!--***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)...?
    Yes, it should inherit. Unless it has it's own application settings.
    > desired result: Nested virtual inherits the parents session timeout (60
    min)
    >
    > ??
    >
    >
    Egbert Nierop \(MVP for IIS\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139