Last active
September 3, 2018 11:21
-
-
Save AdityaChaudhary/7ad4d4b807144aca54529800c276f153 to your computer and use it in GitHub Desktop.
Workaround of Session Fixation in IIS6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Session.Clear(); | |
Session.Abandon(); | |
Session.RemoveAll(); | |
if (Request.Cookies["ASP.NET_SessionId"] != null) | |
{ | |
Response.Cookies["ASP.NET_SessionId"].Value = string.Empty; | |
Response.Cookies["ASP.NET_SessionId"].Expires = DateTime.Now.AddMonths(-20); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment