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
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;
Hi,
Your example is very useful and works well!
Thank you so much!