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

Email Sending through O365 using OAuth Protocol

IISRESET vs App Pool Recycling ?

Deploy .Net6.0 Web api with docker