SignOut() without postback in ajax login

Posted by Romi on Stack Overflow See other posts from Stack Overflow or by Romi
Published on 2009-03-25T13:07:01Z Indexed on 2010/04/17 8:03 UTC
Read the original article Hit count: 275

Filed under:
|
|
|

Hi, I have one asp.net Ajax Login using webservices. In this login i call the loogout() client side from hyperlink:

Sys.Services.AuthenticationService.logout(null,onLogoutCompleted,null,null);

return false;

My Webservice make :

[WebMethod]
public void Logout()
{
    FormsAuthentication.SignOut();
}

logout work but my page make one big postback. Some way to make NO postback at logout?

Thanks

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about login