I am using Form Authentication and sending an Aajx request to the server for authentication. Based on the json result, the client decides where to go and what to do. That is the
we can use this simply
FormsAuthentication.SetAuthCookie(username, true);