ASP.NET 2.0 Web.Config Lessons Learned

ASP.NET 2.0 Web.Config are much different then 1.0/1.1. I’ll be keeping a running log of the changes I have found, watch outs, and a general lessons learned.

  • slidingExpiration - I’ve never heard of the thing in 1.1, but it was there the whole time. It is a boolean that tells an authetication cookie to refresh the timeout time on every new request. This makes sense, in fact I’m not entirely sure why you would want it different. In ASP.NET 1.1 this was defaulted as TRUE, however in 2.0 it is default as FALSE. Now I know why everyone was being logged out of the application at 5:00 pm everyday. ;)

    <authentication mode=Forms>

    <forms loginUrl=Login.aspx name=.ADAuthCookie timeout=480 slidingExpiration=true/>

    </authentication>

  • Written by Tim on April 21st, 2006 with 2 comments.
    Read more articles on asp.net.



    Related articles

    2 comments

    Read the comments left by other users below, or:

    Get your own gravatar by visiting gravatar.com Griffey Shoes
    #1. August 15th, 2011, at 2:02 AM.

    Never done in the article comments, this is my first network comments, appreciate you sharing. Very good article

    Get your own gravatar by visiting gravatar.com Mens Sandals
    #2. September 28th, 2011, at 9:02 AM.

    The trouble with the profit system has always been that is was highly unprofitable to most people. ?E.B.White, American writer?

    Leave your comment...

    If you want to leave your comment on this article, simply fill out the next form:




    Anti-Spam Protection by WP-SpamFree

    You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .

    Famous Homemade Soups