Showing posts with label new session on new window. Show all posts
Showing posts with label new session on new window. Show all posts
Creating different session ID on new window
1)create object of SessionIDManager
/////
System.Web.SessionState.SessionIDManager s1 = new
System.Web.SessionState.SessionIDManager();
//////
2)Remove session id create a new session Id
///////
s1.RemoveSessionID(HttpContext.Current);
s1.CreateSessionID(HttpContext.Current);
///////
3)Assign value to session
//////
Session["page1Session"] = "page1 session";
///////
4)In new page assign session value as above
5)To look session Id in each page write
Response.Write(Session.SessionID)