Hi all,
I'm implementing a web site in which forms authentication and membership profile is used. I don't use a separate login page but a popup div panel that uses ajax authentication underneath.
Everyting is fine but Sys.Services.AuthenticationService.logout() function of ajax makes a full post back. Is it supposed to in that way ? I think something is wrong with it.
Here are code snippet that I use:
Markup:
<a id="linkLogout" style="cursor:pointer;" onclick="return Logout();">Exit</a>
JavaScript:
function Logout()
{
// alert('Logout method invoked !');
Sys.Services.AuthenticationService.logout(null, onLogoutCompleted, null, '');
//AuthenticationStatus();
return false;
}
No metter what I'm doing, after Sys.Services.AuthenticationService.logout is invoked, it makes a post back.
Do you have any sugession to prevent it form posting back the page ?
Thanx for any help.