How to display Session Timeout based on Inactivity time set in WebConfig File.

2 posts, 0 answers
  1. gc_0620
    gc_0620 avatar
    225 posts
    Member since:
    Feb 2008

    Posted 23 Oct 2011 Link to this post

    Folks, Environment VS 2010 with RadControls for ASP.NET AJAX Q2 2011 SP1. I am using below Telerik Demo for Session Time out.

    This above approach is based on preset timeout value within the .aspx page. But I would prefer to show the Session timout inactivity alert based in value set in my Web Config file (here is 20 minutes).

    My webconfig file...
     mode="InProc" stateConnectionString="tcpip=" 
     sqlConnectionString="data source=;Trusted_Connection=yes" 
      cookieless="false" timeout="20" />

    If possible,  will very much appreciate if any sample code is provided for this solution. Thanks a lot. 


  2. Marin Bratanov
    Marin Bratanov avatar
    3564 posts

    Posted 25 Oct 2011 Link to this post

    Hello Gc_0620,

    I believe the following article from MSDN will help you obtain the session timeout in the code-behind: Please note that this is not related to the RadNotification, but is considered general ASP knowledge.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. DevCraft R3 2016 release webinar banner
Back to Top