Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

After adding BotDetect CAPTCHA to my form, Ive noticed that the first time I access the page the URL modifies itself, by adding a querystring: ?AspxAutoDetectCookieSupport=1. This querystring disappears on the next request, but Im wondering is it possible to hide it completely?

0
Posted

After adding BotDetect CAPTCHA to my form, Ive noticed that the first time I access the page the URL modifies itself, by adding a querystring: ?AspxAutoDetectCookieSupport=1. This querystring disappears on the next request, but Im wondering is it possible to hide it completely?

0

The AspxAutoDetectCookieSupport=1 querystring is added automatically by ASP.NET during the cookie support detection phase. Since cookieless attribute in the web.config file is set to “AutoDetect”, the ASP.NET runtime tries to detect whether the user’s browser supports cookies, and the querystring parameter is added during that process. If cookies are supported, the Session ID is kept in a cookie, and if not the Session ID is sent in the Url of all future requests by that user. The only way to remove the querystring is to set the cookieless attribute to either “true” or “false” in your web.config file. But in that case, all Urls will be dynamically changed to include the ASP.NET Session identifier (cookieless=”true”), or CAPTCHA validation will always fail for users who have cookies disabled in their browser (cookieless=”false”). Since this is built-in ASP.NET behavior, you will have to decide which cookieless value best suits your application. You can read more about coo

Related Questions

Experts123