I am trying to figure out how to reload a page upon the user choosing to log out. This involves setting the logged in cookie to expired, and when the page reloads it will display as an unlogged in user.
// expiring the cookie for logout
ARCookie.Expires = DateTime.Now;
Response.Cookies.Set(ARCookie);
What seems to be a quick and dirty way of doing this is one of these three:
// reload the page
Response.Redirect(thisPage);
//or
Server.Transfer(thispage, false);
//or
Server.TransferRequest(thispage, false);
Which of these is the best way, or is there another way of doing it that is preferred. I can't find any kind of explicit "Refresh" command or action in the Page object. Is there one that I am perhaps missing somewhere?