Better Way To Handle Logout
I have a custom logout page. When user clicks logout this page is reached (and logout status is saved in database). There is no login mechanism. If a user tries in a new window he
Solution 1:
Scenario 1: don't Ajax:
If you are on the page the user may not see again,
window.location.replace("LogOut.aspx/GetActiveIndicatorStatus?empID="+empID)
will replace the page you are on with whatever you return.
Scenario 2: replace in the result:
if ($.trim(result) == "LoggedOUT") {
window.location.replace("LogOut.aspx");
}
else
{
contentHolderDiv.css("display", "block");
}
Post a Comment for "Better Way To Handle Logout"