I am trying to implement the Session Timeout functionality.
1) Is it possible to somehow get the browser window to flash/blink or something similar when the notification appears? If I have opened a PDF from my site and am reading that in its own tab, and the session timeout window appears on the previous tab, I want to be notified that it exists, otherwise the Timeout Window becomes a bit more pointless.
2) Also, your Session Timeout demo gets quite confusing when you say some of the code is there only for the demo but not needed otherwise, yet I can't seem to get mine to redirect me after the 2 minutes. Do you have a quick sample that shows an alert after 10 seconds, and then after 5 seconds of being visible, (and no action taken...simulating a session timeout) it redirects to a new page? I'm not sure what I am doing wrong.
Here's the HTML code I have so far:
1) Is it possible to somehow get the browser window to flash/blink or something similar when the notification appears? If I have opened a PDF from my site and am reading that in its own tab, and the session timeout window appears on the previous tab, I want to be notified that it exists, otherwise the Timeout Window becomes a bit more pointless.
2) Also, your Session Timeout demo gets quite confusing when you say some of the code is there only for the demo but not needed otherwise, yet I can't seem to get mine to redirect me after the 2 minutes. Do you have a quick sample that shows an alert after 10 seconds, and then after 5 seconds of being visible, (and no action taken...simulating a session timeout) it redirects to a new page? I'm not sure what I am doing wrong.
Here's the HTML code I have so far:
<script language="javascript"> function SessionTimeoutOnShowing(sender, args) { } function ContinueSession() { var notification = $find("rnSessionTimeout"); notification.update(); notification.hide(); }</script> <telerik:RadNotification ID="rnSessionTimeout" runat="server" Position="Center" Width="300" Height="125" LoadContentOn="PageLoad" AutoCloseDelay="10000" ShowInterval="15000" Title="Session Expiration" Value="~/" TitleIcon="Warning" OnClientShowing="SessionTimeoutOnShowing" ContentIcon="Warning" Skin="Default" EnableRoundedCorners="true"> <ContentTemplate> Your session is about to expire. Do you wish to continue using this site?<br /> <telerik:RadButton Skin="Default" ID="continueSession" runat="server" Text="Continue Your Session" Style="margin-top: 10px;" OnClientClick="ContinueSession(); return false;" /> </ContentTemplate> </telerik:RadNotification>