User614698185 posted
Hi Elvin Diz,
The session ID is identified by the cookie ASP.NET places in the browser. And even if you abandon session, ASP.NET will reuse it if the cookie is there. You need to remove that cookie by setting its expiration date like below:
HttpCookie mycookie = new HttpCookie("ASP.NET_SessionId");
mycookie.Expires = DateTime.Now.AddDays(-1);
Response.Cookies.Add(mycookie);
This will force ASP.NET to regenerate a new session ID.
Best Regards,
Candice Zhou