# Cookies not returned for Rails app when moved from 1.7 to 2.x

**URL:** <https://community.traefik.io/t/cookies-not-returned-for-rails-app-when-moved-from-1-7-to-2-x/6255>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress, kubernetes-crd\
**Created:** [May 27, 2020, 10:47pm UTC](https://community.traefik.io/t/cookies-not-returned-for-rails-app-when-moved-from-1-7-to-2-x/6255 "2020-05-27T22:47:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brainlid](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/brainlid/32/2123_2.png) [@brainlid](https://community.traefik.io/u/brainlid)\
**Post date:** [May 27, 2020, 10:47pm UTC](https://community.traefik.io/t/cookies-not-returned-for-rails-app-when-moved-from-1-7-to-2-x/6255/1 "2020-05-27T22:47:05Z")

</div>

I need help diagnosing a strange problem that started when I migrated from 1.7 to 2.2.

**Problem:**

Newly created cookies are not returned on the response to the browser. The application is running in a docker container and changing from Traefik 2.x back to 1.7 makes it work. Going back to 2.x breaks it again.

**Additional Info:**

Traefik is running inside Kubernetes. I have tested with both Ingress and the newer IngressRoute.

The application is a Rails app running inside a docker container. Inside the container it uses Nginx and Fusion Passenger to handle requests. When logging in to the application, a `_session` cookie is set. However, this cookie is not returned to the browser when using 2.x. I've tested setting other cookies and those are not returned either.

I haven't found documented issues or problems like this. I've re-deployed Traefik running with log.level=DEBUG but didn't see anything too helpful. The only thing I saw was that in the logs, Traefik lists the cookies returned on a redirect and the missing cookies are still missing from those logs.

I tested this with multiple versions of Traefik and confirmed that the problem started when moving from 1.7 to 2.0.

What can I do to help isolate this issue? Have you heard of anything like this before?

When I run Traefik locally on my machine using the same applications but not with Nginx/Passenger, it _does_ return the cookies.

---

<div class="post-metadata">

**Author:** ![rafael](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@rafael](https://community.traefik.io/u/rafael)\
**Post date:** [December 10, 2021, 10:19pm UTC](https://community.traefik.io/t/cookies-not-returned-for-rails-app-when-moved-from-1-7-to-2-x/6255/2 "2021-12-10T22:19:13Z")

</div>

Hello, i get the same problem, have you fix it?  
After i migrate to traefik, server side cookie stops working.  
i trying to use [Services - Traefik](https://doc.traefik.io/traefik/routing/services/#sticky-sessions), but i have no success.
