07-24-2023, 06:09 AM
I am setting the following in my Application_Error:
HttpContext.Current.Session["ErrorMessage"] = "Error message for current user";
Then in my client side, I want to consume the error message and then clear this error. So I mistakenly thought I can do this:
$.session.remove('ErrorMessage');
But that doesn't do it. How can I clear the session variable? Thank you.
HttpContext.Current.Session["ErrorMessage"] = "Error message for current user";
Then in my client side, I want to consume the error message and then clear this error. So I mistakenly thought I can do this:
$.session.remove('ErrorMessage');
But that doesn't do it. How can I clear the session variable? Thank you.