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
try to use below code snippet
SessionState.SessionIDManager Manager = new SessionState.SessionIDManager();
string NewID = Manager.CreateSessionID(Context);
string OldID = Context.Session.SessionID
Comments
Post a Comment