Rename ASP.NET_SessionId

asp.net

Solution

Add to your web.config:-

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

Problem

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?

Original source