'How to clear a cookie in Lucee

How to clear a cookie in Lucee

I have a code in ACF as below, below code not working it gives blank page in Lucee.

<cfheader name="Set-Cookie" value="bouluser=;expires=#DateFormat(CreateDate(1970,1,1), 'ddd, dd-mmm-yyyy')# #TimeFormat(CreateTime(00,00,00), 'HH:mm:ss')# GMT;path=/;">
<cfheader name="Set-Cookie" value="bouluser=;expires=#DateFormat(CreateDate(1970,1,1), 'ddd, dd-mmm-yyyy')# #TimeFormat(CreateTime(00,00,00), 'HH:mm:ss')# GMT;domain=.boul.com;path=/;">
<cfheader name="Set-Cookie" value="bouluser=;expires=#DateFormat(CreateDate(1970,1,1), 'ddd, dd-mmm-yyyy')# #TimeFormat(CreateTime(00,00,00), 'HH:mm:ss')# GMT;domain=boul.com;path=/;">
Getting below error some times: 
Generic Connector Communication Error:
Please check and adjust your setup:
Ensure that Tomcat is running on given host and port.
If this is a timeout error consider adjusting IIS timeout by changing executionTimeout attribute in web.config (see manual). [2022-05-06 22:38:44 ]


Solution 1:[1]

I have tested your code and it works without any issues on Lucee. The Generic Connector Communication Error is a timeout comming from IIS. That is triggered after not receiving any repsonse from the connector. It shouldn't have anything to do with the code you've submitted.

First, I'd try running that cfm template/code directly through Lucee port 8888 just to rule that out. If that works, than it's not an issue of Lucee.

If you've tested that page without any issues on Lucee port 8888 and you are still experiencing the same error through IIS port 80, I'd try debugging the IIS connector for further information. Maybe something is happening inbetween the connection. If you are using boncode connector, try setting the connector logging to debug level as mentioned in boncodes documentation to get further information.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AndreasRu