•  Andrew
  • 51% (Neutral)
  • Newbie Topic Starter
System is continuously throwing this exception.
Server cannot modify cookies after HTTP headers have been sent.

System.Web.HttpException (0x80004005): Server cannot modify cookies after HTTP headers have been sent.
at System.Web.HttpResponse.BeforeCookieCollectionChange()
at System.Web.HttpCookieCollection.Add(HttpCookie cookie)
at Hotcakes.Commerce.SessionManager.SetCookieString(String cookieName, String value, Nullable`1 expirationDate, Boolean secure)

HC version 1.10.4 Pro
DNN 07.04.02 (216)

Any thoughts on how to resolve the issue would be appreciated.

Will Strohl
Hello Andrew:

That's a common error, but the cause for it could be almost anything. It's not something that occurs in a "clean" install, but only in implemented sites. The nature of it suggests that there's a redirect being executed during an AJAX process that is already occurring. For example, the page is still loading and then a client side event fires that redirects.

Do you have anything in your viewset that could potentially be similar to this cause?
Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
Users browsing this topic
    • Sign-up for the Hotcakes Community Newsletter: