Using Forms Authentication and WebFlyPostbackManager

1 reply. Last post: December 1, 2009 1:24 AM by Andi Santoso
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I have a web page in my system that uses WebFlyPostBack manager with EnableUImode = True. I also use formsAuthentication and one variable is in session.

If the session expires I want the web page to redirect to the login page. So I logoff and try to redirect using this code in Page_Load: 
if

if( Internals.LoggedOnUser() == null ) // Check the session variable
{
    System.Web.Security.
FormsAuthentication.SignOut();
    Response.Redirect( System.Web.Security.FormsAuthentication.LoginUrl, true );
    return;
}

Unfortunately this is not working, simply nothing happens.

I have also tried to do this such by leting the client perform the redirection to some URL, but that does not work either:

if( Internals.LoggedOnUser() == null ) // Check the session variable
{
    System.Web.Security.
FormsAuthentication.SignOu();
   
WebFlyPostBackManager1.ClientAction.InvokeScript( "SessionTimeou('http://www.msn.com')" );
    return;
}

I'm using WegUI Studio 2008 R1. Is there any solution to solve this?

All times are GMT -5. The time now is 10:37 PM.
Previous Next