Staging while using “cookieless” parameter set to “AutoDetect”

   —   
This article will show you how to configure staging for applications that are set to auto detect the cookies.
When synchronizing the tasks you will get, in this case, error like this:
Synchronization client error: Exception occurred: The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/CMSPages/syncserver.asmx?AspxAutoDetectCookieSupport=1">here</a>.</h2> </body></html> --.

This error is caused because your application is set to detect the cookies automatically in the web.config file:
<forms loginUrl="CMSPages/logon.aspx" defaultUrl="Default.aspx" name=".ASPXFORMSAUTH" timeout="60000" slidingExpiration="true" cookieless="AutoDetect" />

<sessionState cookieless="AutoDetect" mode="InProc" timeout="20" />


To solve this problem you need to modify the staging server URL configuration in CMS Desk -> Tools -> Staging -> Servers -> <edit your server> add the marked part to the URL and save the change (restart of the application may be required):
http://<domain>/cmspages/syncserver.asmx?AspxAutoDetectCookieSupport=1
-jo-


See also: Web Services, Session Cookieless="AutoDetect" Issue

Applies to: Kentico CMS Version 7.x
Share this article on   LinkedIn