Share via


how to add cookie prefix __Host- to asp.net_sessionid cookie

Question

Tuesday, October 27, 2020 11:31 AM

using asp.net webforms , need to add cookie prefix __Host- to asp.net_sessionid cookie

I tried adding response header like -  <add name="Set-Cookie" value="__Host-ASP.NET_SessionId=ctwv5wqzf1amycns4vhhsz55; path=/; Secure; HttpOnly; SameSite" /> .. but did not work 

All replies (1)

Wednesday, October 28, 2020 2:15 AM

Hi anbujeremiah,

 Accroding to your description,cookie prefix is available in Chrome 49+.You could check your browsers.

More details,you could refer to below article:

https://googlechrome.github.io/samples/cookie-prefixes/

Best regards,

Yijing Sun