How do I handle sliding session timeout with RadNotification

3 posts, 0 answers
  1. Forum
    Forum avatar
    8 posts
    Member since:
    Jul 2011

    Posted 20 Jun 2013 Link to this post


    I am using the RadNotification control to notify the user of their session timeout due to inactivity.  I am basically following the example from the demo on the site.  But notification keeps showing even if there was ajax calls that keeps the session alive. I couldn't find any documentation on handling sliding session timeouts with radnotification control.
  2. Forum
    Forum avatar
    8 posts
    Member since:
    Jul 2011

    Posted 20 Jun 2013 Link to this post


    I figured out the problem by calling the ContinueSession js function when ResponseEnd Event.  I added it to RadAjaxManager.ClientEvents.OnResponseEnd = "ContinueSession".

    Thanks
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 21 Jun 2013 Link to this post

    Hello,

    To avoid this additional request you can add the RadNotification in an ASP:UpdatePanel with UpdateMode=Always so it is disposed after every postback and so its timer starts ticking again. You can, of course, also call the ContinueSession() function when needed by your code.


    Regards,
    Marin Bratanov
    Telerik
    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 the blog feed now.
Back to Top