perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

Set cookie does not work when Spark is deployed in Apache Tomcat #1002

Open mariocalin opened 6 years ago

mariocalin commented 6 years ago

In Apache Tomcat (in my case with Apache Tomcat 8), spark does not set a cookie value. The JSession ID is set but not the custom cookies I try to set.

response.cookie(COOKIE_NAME, cookie);

I opened a post in StackOverflow giving the complete details: https://stackoverflow.com/questions/49782776/how-to-set-cookies-in-spark-java-being-deployed-in-apache-tomcat

ali-kamalizade commented 5 years ago

I also have this issue with my Spark application which is deployed on Heroku.