More in this section

Forums / Developing with Sitefinity / Session Timeouts

Session Timeouts

4 posts, 0 answered
  1. Jean-Yves
    Jean-Yves avatar
    2 posts
    Registered:
    05 Mar 2009
    05 Mar 2009
    Link to this post
    Hello,

    I am using Sitefinity CMS version 3.5. Whenever I am working in the admin section, whether it is to manage the content of the website (news, events, blog, images) or it is to modify the structure of the website in the Pages section, every now and then (say 10 minutes), I am being redirected to the login page, even though in the web.config, the timeout is 1440. I have tried everything but can't seem to figure out what the problem is. To ensure a good hosting environment, my website is hosted at DiscountASP.NET which should supposedly have an environment best suited for Sitefinity CMS.

    Can you please help me out?

    Thank You
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    05 Mar 2009
    Link to this post
    Hello Jean-Yves,

    The problem could be if the regular time of recycling is set to some value that cause application pool to recycle, or you have exceeded memory based maximums. Check whether you use any sign out methods like FormsAuthentication.SignOut().

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Jean-Yves
    Jean-Yves avatar
    2 posts
    Registered:
    05 Mar 2009
    06 Mar 2009
    Link to this post
    Hello Ivan,

    I suspected the issue was a recycling issue, so I contacted DiscountASP.NET and explained my problem. They told me that maybe the application pool was recycling, which caused the loss of session. So, they offered me a solution. They told me to move the session state from inProc to SQL Server. This way, even if the application pool recycles, the session remains available. So, I did so. But now, I cannot do anything anymore. As soon as I log in, when I click the first link, I am sent back out to login page.

    I am not using any sign out methods. In fact, this is the admin side, and I did not modify the backend code of the admin side. Is there anything else I should do in the web.config other than add the sessionState tag to enable SQL Server Session? Does Sitefinity support SQL Session in the first place?

    Thanks
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Mar 2009
    Link to this post
    Hi Jean-Yves,

    Generally sessionState mode="SQLServer" makes session state available to multiple Web servers in a Web farm. In your case probably this makes overhead to the database - serialization and deserilization. Authentication in Sitefinity is based on cookie, so I could not find a relation between sessionState mode and our authentication - sessionState keeps cookie for for session object - not for the authentication one which is different. It is possible that you have memory limit and somehow after restarting the application pool your cookie is clearead/lost.


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
4 posts, 0 answered