hi,

how can we create a new session?

n i also want to knw how can i generate a new session id everytime i visit a page.

even if i use Session.clear/Abandon method, it generates a same session id everytime i visit the page.

hoping for a reply soon

Thanks

Try this.

Session.Abandon();
Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", ""));
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.