Topic: Cookies expires always at end of session


I'm using cookies to save session and auto log in the user when he starts the application.
But my cookie expiration is always set at the end of session, even I set a time limit. So, every time the user restarts his browser, he must log in again.

I created my cookies like that:

cookies.permanent.signed[:remember_token] = {
      :value => [, user.salt],
      :expires => 1.month.from_now }

Any idea where it does come from? Is it from my code, my browser or my environment?