Session Timeout Problem

Last post 06-04-2009 3:49 AM by Bober Song - MSFT. 6 replies.

Sort Posts:

  • Session Timeout Problem

    06-02-2009, 3:52 PM
    • Member
      464 point Member
    • ajay.kukreja
    • Member since 04-20-2009, 2:58 PM
    • Posts 84

     Hi,

     I'm unable to extend the session time out from 20 minutes to 60 minutes. I'm using the forms authentication and my session state is set to state server. I have made the changes in my web.config for authentication and session state from 20 to 60 and still session times out after 20 minutes. I'm using .Net 3.5 in my application.

     Thanks

     

    Please remember to click “Mark as Answer” on the post if this answer helps you.

  • Re: Session Timeout Problem

    06-02-2009, 8:41 PM

    I'm not sure if IIS session timeout applies to asp.net or only asp, but it's worth changing the session timeout in IIS to 60 minutes and see if that helps.

  • Re: Session Timeout Problem

    06-03-2009, 2:01 AM
    • Contributor
      3,230 point Contributor
    • aditya1986
    • Member since 05-04-2009, 5:04 AM
    • Posts 529

     you mention session time out in web config  as given below

    <sessionState mode="InProc" stateConnectionString="tcpip=72.41.47.186:42424" cookieless="false" timeout="1440"/>

    if not solved set time out in  iis 

    i hope it helps you

    MARK AS ANSWER if post helps
  • Re: Session Timeout Problem

    06-03-2009, 2:18 AM
    • Star
      10,646 point Star
    • sumitd
    • Member since 07-16-2008, 4:32 PM
    • Bangalore
    • Posts 1,874

    If  your appliction is in ASP. You need to configure IIS Session Timeout.

    If it's ASP.NET application, web.config overrides IIS session timeout.

    Do you have multiple web.config in your project?

    If root folder of an application has any subfolders with web.config files in there, the settings of those files will override the settings of the file in the root directory.

    Please mark it as answer if it resolves the issue.

    visit: http://technicalsol.blogspot.com

    Latest ajax control toolkit (Release: May 13, 2009): http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=27326
  • Re: Session Timeout Problem

    06-03-2009, 10:08 AM
    • Member
      464 point Member
    • ajay.kukreja
    • Member since 04-20-2009, 2:58 PM
    • Posts 84

     Aditya, I'm using the State server. here is my web.config settings

    <sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="60"/>

    <authentication mode="Forms">
          <forms loginUrl="~/Public/Login.aspx" defaultUrl="~/Customer/Default.aspx" timeout="60"/>
        </authentication>

    Please remember to click “Mark as Answer” on the post if this answer helps you.

  • Re: Session Timeout Problem

    06-03-2009, 11:21 AM
    Answer
    • All-Star
      25,564 point All-Star
    • budugu
    • Member since 01-12-2006, 2:15 PM
    • North Carolina
    • Posts 3,802

    Session has nothing to do with forms authentication. You may be overriding forms authentication timeout value in code. Check this..

    http://weblogs.asp.net/owscott/archive/2006/07/15/Forms-Authentication-Timeout.aspx

    Vijay Kodali || My Blog


    "Don't be afraid to be wrong; otherwise you'll never be right."
  • Re: Session Timeout Problem

    06-04-2009, 3:49 AM
    Answer

     Hi  ajay.kukreja,

     There are few possible option where you can set the session time out.

    1. In Web.config like..
           <sessionState mode="InProc" timeout="15" cookieless="true" />

    2. In Session_Start event in Global.asax like....
           Session.TimeOut=15;

    3. In IIS Setting you can also set default session timeout.

           a. open IIS start==run==inetmgr  and press enter.
           b. Right Click on "Default Web Site" go in Propertied
           c. Select Asp.Net, click on "Edit Configuration" Button 
           d. Select "State Management" in new popup window
           e. Change the session timeout here.

    Please check the following links which is related to your issue.

    increase session timeout
    http://forums.asp.net/t/1283350.aspx

    Let me know whether that answers your question, please feel free to let me know.

    Best Regards,
    Bober Song
    --------------------------------
    Please remember to click “Mark as Answer” on the post that helps you
Page 1 of 1 (7 items)