Forms authentication in Ajax

1)Enable Authentication service in web.config
2) In javascript call the Login method of the Authentication service like:
Sys.Services.AuthenticationService.login(username.value, password.value, false,null,null,null,null,"User Context"); http://www.asp.net/AJAX/Documentation/Live/tutorials/UsingFormsAuthenticationTutorial.aspx