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

Notification with multiple tabs

1 Answer 227 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 28 Sep 2013, 11:30 PM
Hi I was able to get the notification working with a single page application.  http://demos.telerik.com/aspnet-ajax/notification/examples/sessiontimeout/defaultcs.aspx

 Works great.  My question is:  I have another application in which I need to implement this functionality, however that application uses multiple browser tabs all tied to the same session.  Is the notification designed to handle this kind of scenario?  If the user is working in one tab I don't want the second tab to timeout automatically and invalidate the session.

Thanks

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 01 Oct 2013, 09:50 AM
Hi Jonathan,

This question has been asked several times and the answer is that this is not what RadNotification does. It facilitates a timed appearance of a popup and an easy way to perform a request that will renew the session, but it does not monitor the session, nor can it know of other tabs/windows:
- http://www.telerik.com/community/forums/aspnet-ajax/notification/timeout-notification-for-multiple-windows.aspx
- http://www.telerik.com/community/forums/aspnet-ajax/notification/session-timeout-notification-multiple-windows.aspx
- http://www.telerik.com/community/forums/aspnet-ajax/notification/how-do-i-handle-sliding-session-timeout-with-radnotification.aspx

What you can consider is to always keep the session alive in your tabs. You could do that without the notification. Or, you could call the ContinueSession() function when needed (e.g. when the notification has been shown, even without the user pressing the button) so that the session never ends automatically.

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
Jonathan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or