3

I am changing session state in:

<sessionState cookieName="myCookieName" />

It changed correctly, but one issue I am facing is default the "ASP.NET_SessionId" is also showing.

I didn't understand what I am going wrong. How can I fix this?

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

I need only to show a cookie named foo. I don't want to show "ASP.NET_SessionId".

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
sarathy
  • 33
  • 2
  • Where is it showing? Where you don't want to show? – Chetan Apr 29 '19 at 15:01
  • first of all thank you for the reply. Its showing in the web browser cookie and i don't want to show the "ASP.NET_SessionId" in the web browser cookie Issue in detail : I would like to change ASP.NET session cookie name "ASP.NET_Sessionid" to some other name. I specified . When I use fiddler and browser to view response header, I can see "MyCookieName" with random generated number under cookie section, however, ASP.NET_SessionId also exist there. – sarathy Apr 29 '19 at 15:06
  • Clear browser cache memory whenever change cookie name. – Thamarai T Apr 30 '19 at 13:28

1 Answers1

1

Maybe it's just a cache issue. Try to delete the cookie in the browser.

Then log in again, and see if it appears again...

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Rui Caramalho
  • 455
  • 8
  • 16