.net application can i set forms authentication session to 1 minute?

Posted on 2011-10-31
Last Modified: 2012-06-27
in my .net application, i want to set timeout to 1 hour.

I played around the web.config and iis, still no luck to set the time.

Come down to it, i want to try set <authentication mode="Forms"> to 1 minute (for testing purpose), can i do that?  
<authentication mode="Forms">
      <forms loginUrl="/Security/Login.aspx" timeout="1" path="/"></forms>

cuz i am wondering the timeout min is 30 minute.

Please advise,
Question by:hongclub
    1 Comment
    LVL 1

    Accepted Solution

    The timeout value is in minutes.

    You should be able to set the timeout to 1 hour by setting the value to "60".
    And yes, the default timeout for the ASP.NET 2.0 Forms authentication is 30 minutes.

    Yes, you should be able to set the value to 1 minute (by setting it to 1). As long as you don't perform any actions on the website after being logged in, it should log you off after 1 minute.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  â€¦
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now