This is a migrated thread and some comments may be shown as answers.

How do I handle sliding session timeout with RadNotification

2 Answers 157 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Forum
Top achievements
Rank 1
Forum asked on 20 Jun 2013, 02:47 PM

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 Answers, 1 is accepted

Sort by
0
Forum
Top achievements
Rank 1
answered on 20 Jun 2013, 03:54 PM

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

Thanks
0
Marin Bratanov
Telerik team
answered on 21 Jun 2013, 02:26 PM
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.
Tags
Notification
Asked by
Forum
Top achievements
Rank 1
Answers by
Forum
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or