Session Timeout - General Discussions - General Discussions - Progress Community
 General Discussions

Session Timeout

  • Session Timeout
  • In Sitefinity Version 4.3, my session would time out if there was no activity 2 hours.

    i want change 2 hours to 30 minutes.

    i add this code in web.config .but it not work. does i make some mistakes?   or  how i can change it ?

    <
    authentication mode="Forms">
        <
    forms name=".ASPNET" loginUrl="~/sitefinity/login.aspx" protection="All" timeout="30" path="/"/>
    </
    authentication>



    thanks 

  • Hi Wei,

    You can change the session timeout settings by navigating to Administration -> Settings -> Advanced -> Security and change the value of the following fields:

    AuthCookieTimeoutDescription
    BackendUsersSessionTimeoutDescription


    to whatever you want.

    Kind regards,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  • it worked . thanks very much!
  • dd

  • Hi,

    If I set this BackendUsersSessionTimeout under in "Sitefinity Administration -> Settings -> Advanced -> Security" menu it works well in my application.

    How can I get the value of this session timeout value to write into my application screen?

    I have try to write the "Session.Timeout" variable but I get constantly 20 minutes even if I set "BackendUsersSessionTimeout" to 1 minutes.

  • Hi Nagy,

    This setting is available and could be get from the SecurityConfig file. To do you can use the following code snippet:
    using Telerik.Sitefinity.Configuration;
    using Telerik.Sitefinity.Security.Configuration;
    ...
    var conf = Config.Get<SecurityConfig>();
    var sessionTimeout = conf.BackendUsersSessionTimeout;

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  • Hi,

    Your example is very useful and works well!

    Thank you so much!