SessionID in ASP.NET MVC

session Id every 2-3 request will be changes shouldn't it remain the same because : ASP.NET keeps assigning new session ids until you place something into the Session variable

Session.SessionID
so you can't use it for make it use Session Start and save a variable on Session. Like this :

void Session_Start(object sender, EventArgs e) {
  session["SessionID"] = Guid.NewGuid().ToString();
}

Comments

Popular posts from this blog

C# Crop white space from around the image

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0, Culture=neutral, PublicKeyToken='xxx' or one of its dependencies.

The specified version string contains wildcards, which are not compatible with determinism.