I have a requirement in my Silverlight 5 app hosted in an ASP.NET site with FormAuthentication with 5 min timeout. I have a client requirement that when the session timeout occurs the next user request must be redirected to login.aspx and login again.
Currently I have this in Application_UnhandledException handler:
if (domainException != null && !WebContext.Current.User.IsAuthenticated) {
e.Handled = true;
System.Windows.Browser.HtmlPage.Document.Submit(); // redirect to login page
}
Thanks Elio