I need to rename the ASP.NET_SessionId cookie created by default by ASP.NET. Let's say I want it's named "foo". Is it possible?
Add to your web.config:-
<system.web>
<sessionState cookieName="foo" />
</system.web>
You can set this in the <sessionState>
configuration setting in your web.config file:
<system.web>
<sessionState cookieName="myCookieName" />
</system.web>
See sessionState Element. look at the cookieName attribute, which will change it from the default of "ASP.NET_SessionId".
I don't recall it correctly but I think you can rename it by changing the web.config
file.
Seach for the sessionState
element of the web.config
.
-
downvoted because
<sessionState>
is not included by default in web.config in most cases, not really helpful. – MoSs Apr 5 '14 at 23:06