Hi. 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?
+1
A:
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
.
Paulo Santos
2009-06-19 09:50:33
+4
A:
See sessionState Element. look at the cookieName attribute, which will change it from the default of "ASP.NET_SessionId".
RichardOD
2009-06-19 09:50:36
+7
A:
Add to your web.config:-
<system.web>
<sessionState cookieName="foo" />
</system.web>
AnthonyWJones
2009-06-19 09:50:54
First answer with the correct example. :-)
RichardOD
2009-06-19 09:53:43
+1
A:
You can set this in the <sessionState>
configuration setting in your web.config file:
<system.web>
<sessionState cookieName="myCookieName" />
</system.web>
Kev
2009-06-19 09:51:31
+1
A:
Yes. You can do it in your web.config file:
<sessionState cookieName="foo" />
Rune Grimstad
2009-06-19 09:52:28