Session Timeout based on Inactivity

4 posts, 0 answers
  1. Philip
    Philip avatar
    21 posts
    Member since:
    Nov 2008

    Posted 08 Sep 2011 Link to this post

    I was able to accomplish session expiration using the notification control set up for my web application thanks to this demo:

    However, this approach is based on a set timeout value and the notification just pops up every timed interval, regardless if the user is active or not. Can the session timeout be set/reset dynamically based on user inactivity? Possibly every time there is an Ajax request call? Some sample codes would be much appreciated. Thanks.
  2. Marin Bratanov
    Marin Bratanov avatar
    4441 posts

    Posted 13 Sep 2011 Link to this post

    Hi Philip,

    You can call the ContinueSession() function that will postpone the appearance of the RadNotification (and, therefore, the redirect) on the event which you consider activity - in the OnResponseEnd for the AjaxManager for example.

    Kind regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. SDI
    SDI avatar
    105 posts
    Member since:
    Nov 2011

    Posted 22 Nov 2012 Link to this post

    Mmm, is this even possible with a master page? i have the RadNotification on the master page, the RadAjaxManager are all on the aspx pages. the continuesession logic is in the master script code, not on the aspx pages. do you have an example of this?


  4. SDI
    SDI avatar
    105 posts
    Member since:
    Nov 2011

    Posted 23 Nov 2012 Link to this post

    the content page can have the OnResponseEnd event firing the ContinueSession event that is located in the master page js. so it is possible and works like a charm. 
Back to Top