Session TimeOut notification SetInterval issue

2 posts, 0 answers
  1. Rama
    Rama avatar
    7 posts
    Member since:
    Jul 2014

    Posted 25 Nov 2016 Link to this post


    I have implemented SessionTimeOut exactly as shown in the example

    However, I need the TimeOut notification to appear only on the home page, the default page after logging in. When the user clicks on a grid view row on the home page, which sets the sessions etc and navigates to various other pages, the timeout should not appear.

    For this, I am setting the ShowInterval to Session.Timeout - 1 on page load and setting it to 0 on click of the gridview row.

    However, the timeout notification is always showing after the time out ie., the timer is always ticking in the background.

    Any suggestions are highly appreciated.

    Thank you.

  2. Marin Bratanov
    Marin Bratanov avatar
    4012 posts

    Posted 28 Nov 2016 Link to this post

    Hello Rama,

    You can declare the markup and scripts only on the desired home page, so it will not show up on others.

    You can also set the Visible property of the notification and a container of the scripts to false depending on your conditions (e.g., a postback has occurred, or the user changed some settings, etc.). This will also reduce the page footprint.


    Marin Bratanov
    Telerik by Progress
    Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Back to Top