Home » Programming / Coding

Create New Session ID – ASP .NET

14 July 2010 1,275 views No Comment

In ASP .NET a new session id (Session.SessionID) does not create with Session.Abandon or Session.Timeout.

Here is the simple process that would create a new session ID on next page load.

Session.Abandon();
Response.Cookies.Add(new HttpCookie(“ASP.NET_SessionId”, “”));

From Webcosmo Webmaster Forum http://www.webcosmoforums.com/asp/20862-create-new-session-id-asp-net.html

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.