I need a way to tell ASP.NET \"Kill the current session and start over with a brand new one\" before/after a redirect to a page.
Here\'s what I\'m trying to do:
For ASP.NET MVC this is what I'm doing with an action method.
Note:
I return the current time and session id so you can verify the action completed succcessfully
public ActionResult ExpireSession()
{
string sessionId = Session.SessionID;
Session.Abandon();
return new ContentResult()
{
Content = "Session '" + sessionId + "' abandoned at " + DateTime.Now
};
}