Authentication Timeout

Last post 04-11-2006 4:56 AM by Keith Whalen. 3 replies.

Sort Posts:

  • Authentication Timeout

    04-10-2006, 8:22 AM
    • Member
      100 point Member
    • Keith Whalen
    • Member since 04-07-2004, 1:31 AM
    • Newcastle Upon Tyne, England
    • Posts 20

    I have a VB.ASP.NET web application which uses Form Authentication to control Security.  The setting in my web.config file is as follows:

     

    <authentication mode="Forms">

    <forms timeout="1480"/>

    </authentication>

     

    Whilst this may seem extreme I want the authentication to last for 24 hours.  When I run the code on my pc (localhost), where it has been developed it works fine and does not expire.  However when I place it on a server it defaults to 20 minutes.  Are there any IIS settings which might surpass the web.config settings

    We can't all be heroes because someone has to sit on the curb and clap as they go by.
  • Re: Authentication Timeout

    04-10-2006, 9:03 AM
    • Contributor
      2,021 point Contributor
    • hoopslife
    • Member since 12-29-2005, 2:29 PM
    • Fort Myers, FL
    • Posts 394
    Not sure if IIS is over-riding web config, but it wouldn't hurt to change the forms timeout for your website in IIS to 1480 as well.  Just open up IIS and then open up the properties dialog for the website you want to make the change for.  Then click on Edit Configuration under the Asp.net tab and change the Forms timeout.
    Never Quit

    Microsoft Certified Solutions Developer

    Blog
  • Re: Authentication Timeout

    04-10-2006, 9:03 AM
    • Participant
      800 point Participant
    • MiGovUser
    • Member since 08-01-2003, 12:37 PM
    • Michigan! The Great Lakes State!
    • Posts 160

    There's a setting under the Directory tab called Configuration; under this is a tab called App Options which has a session timeout variable. You'll want to change that.

    All of this is reachable under Administrative Tools/IIS Manager, then go to your app and right-mouse click for the Properties tab(s).

    Keep in mind any page that maybe set to be sessionless - not that you have done this, but I'll mention it anyway.

    Ask one, answer one.
  • Re: Authentication Timeout

    04-11-2006, 4:56 AM
    • Member
      100 point Member
    • Keith Whalen
    • Member since 04-07-2004, 1:31 AM
    • Newcastle Upon Tyne, England
    • Posts 20

    Many thanks,  I wasn't aware of that option but it has saved the day.

     

    We can't all be heroes because someone has to sit on the curb and clap as they go by.
Page 1 of 1 (4 items)