asp.net下的cookieName

https://stackoverflow.com/questions/1017144/rename-asp-net-sessionid

Add to your web.config:-

<system.web>
    <sessionState cookieName="foo" />
</system.web>

https://docs.microsoft.com/en-us/dotnet/api/system.web.configuration.sessionstatesection.cookiename?view=netframework-4.7#System_Web_Configuration_SessionStateSection_CookieName

The name of the HTTP cookie to use for session identification.

The following code example demonstrates how to get the CookieName property. Refer to the code example in the SessionStateSection class topic to learn how to get the section.  

// Display the current CookieName property value.
Console.WriteLine("CookieName: {0}",
  sessionStateSection.CookieName);

 目前来看cookieName并不能区分记住账号和密码,记住账号和密码是纯浏览器的行为。浏览器的记住账号和密码,仅仅区分domain name。

原文地址:https://www.cnblogs.com/chucklu/p/9776958.html