New ASP.NET Session_Id creation

When you want it to change session id when someone logs in to website just before you set  initial session variables.

try to use below code snippet 

SessionState.SessionIDManager Manager = new SessionState.SessionIDManager(); 
string NewID = Manager.CreateSessionID(Context); 

string OldID = Context.Session.SessionID

Comments

Popular posts from this blog

C4 model for visualizing software architecture

Sticky Session- Load Balancing

Grakn Architecture