I am new to MVC, I want to get a new sessionId for each login, because I get like
string sessionId=HttpContext.Current.Session.SessionID;
But it generates the same session for each input.
I used to delete or clean up the session as shown below:
Session.Abandon(); Session.RemoveAll(); Session.Clear();
But there is no change in the generying sessionid for each entry. Is there an alternative to creating a new sessionId for each login?
source share