Windows Auth Problem

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

  1. #1

    Default Windows Auth Problem

    We're having a problem where our application is timing out
    after 60 minutes no matter what type of activity is
    occuring. A user can be in the middle of a server call
    and it will timeout after 60 minutes. This only occurs
    with Windows authentication and not forms based.

    We have the following in the web.config:

    <authentication mode="Windows">
    <forms loginUrl="Login.aspx" name="RiskLogin"
    timeout="120" path="/">
    </forms>
    </authentication>

    <sessionState mode="StateServer"
    stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data source=127.0.0.1;user
    id=sa;password=" cookieless="false" timeout="120" />


    Where is this 60 minute timeout coming from? Am i missing
    something?


    Tom Smit Guest

  2. Similar Questions and Discussions

    1. Forms Auth Info passed to Windows Auth?
      The requirement is to build an ASP.Net intranet application, so external users can log in to the main web portal via forms authentication, using...
    2. ASP.NET 2.0 - Windows Auth and Roles
      Is it possible to use Windows authentication and the builtin role provider in ASP.NET 2 Beta 2? The intranet app I'm developing uses Windows...
    3. question on windows auth
      Hi I am working on an intranet application. I am using windows integrated authentication. Now since the authentication is done by active directory...
    4. Configuring Windows Auth & Forms Auth in Asp.Net
      Configuring Windows Auth & Forms Auth in Asp.Ne Hi, I've configured a web app to use windows authentication and also set up two separate...
    5. Windows Auth, MUST change password
      If a user's password expires or an admin otherwise set the "user must change password" flag it appears that a user can no longer access the web...
  3. #2

    Default Re: Windows Auth Problem

    Tom,

    Here is a snippet from the machine.config file:

    <authentication mode="Windows">
    <!--
    forms Attributes:
    name="[cookie name]" - Name of the cookie used for Forms
    Authentication
    loginUrl="[url]" - Url to redirect client to for Authentication
    protection="[All|None|Encryption|Validation]" - Protection mode for
    data in cookie
    timeout="[minutes]" - Duration of time for cookie to be valid (reset
    on each request)
    path="/" - Sets the path for the cookie
    requireSSL="[true|false]" - Should the forms-authentication cookie
    be sent only over SSL
    slidingExpiration="[true|false]" - Should the
    forms-authentication-cookie and ticket be re-issued if they are about to
    expire
    -->
    <forms name=".ASPXAUTH" loginUrl="login.aspx" protection="All"
    timeout="30" path="/" requireSSL="false" slidingExpiration="true"></forms>
    </authentication>

    I am not entirely positive about this, but you may try adding the
    "slidingExpiration" attribute to your web.config file. It is supposed to
    reissue the authentication cookie every time a request is sent to the
    server...at least the way I understand what I read in the documentation.
    You can set the "timeout" period to whatever you like, but the sliding
    expiration keeps the session alive as long as someone is actively using it.
    I think this is so you can have short timeout periods but not worry too much
    about loosing your users.

    Give it a shot, but I thought if nothing else it was woth a try. :)

    -- Andrew




    "Tom Smit" <tsmit@nospam.com> wrote in message
    news:%2353V0dMHEHA.3700@TK2MSFTNGP09.phx.gbl...
    > We're having a problem where our application is timing out
    > after 60 minutes no matter what type of activity is
    > occuring. A user can be in the middle of a server call
    > and it will timeout after 60 minutes. This only occurs
    > with Windows authentication and not forms based.
    >
    > We have the following in the web.config:
    >
    > <authentication mode="Windows">
    > <forms loginUrl="Login.aspx" name="RiskLogin"
    > timeout="120" path="/">
    > </forms>
    > </authentication>
    >
    > <sessionState mode="StateServer"
    > stateConnectionString="tcpip=127.0.0.1:42424"
    > sqlConnectionString="data source=127.0.0.1;user
    > id=sa;password=" cookieless="false" timeout="120" />
    >
    >
    > Where is this 60 minute timeout coming from? Am i missing
    > something?
    >
    >

    Andrew 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