How to remove AspxAutoDetectCookieSupport = 1

I have a url like http://www.foo.com/NewPage.aspx?pageid=10 . However, for some users this is displayed as http: //: //www.foo.com/NewPage.aspx? Pageid = 10 &

Now I read that AspxAutoDetectCookieSupport = 1 is added, as in my web.config, since I have my web.config as <sessionState cookieless="AutoDetect"/> , whereas it should be <sessionState cookieless="UseCookies"/>

What I wanted to know is that there is a problem with this change.

+3
source share
1 answer

Try <sessionState mode="InProc" cookieless="false" timeout="20" />

for reference remove AspxAutoDetectCookieSupport

or use this in a web configuration,

 <authentication mode="Forms"> <forms cookieless="UseCookies"/> </authentication> 

Looking through this problem, I found in one article

You can change cookieless="AutoDetect" to cookieless="UseCookies" . This will get rid of it, but users without cookies will not be able to transfer session objects around. Depending on how you use it, it may or may not matter.

You can also write a routine that sniffs search bots and rewrites Url, or write .browser files for search engines about.

For reference: Remove cookie support

+4
source

Source: https://habr.com/ru/post/1241732/


All Articles