is there any way to remove session with jquery?
or i use webmethod to remove session (is this good solution?):
$.ajax({
url: "Default.aspx/RemoveSession",
type: "POST",
data: {},
contentType: "application/json; charset=utf-8",
dataType: "json"
});
webMethod:
[WebMethod]
public static void RemoveSession()
{
Session.Remove("UserName");
}
You can do it will ajax call at most or use postback to remove the sessions.