Cookies are not respecting the expire parameter
When you create a new cookie and include the expire parameter, the system is sending incomplete and convert this in a session cookie
- Make sure you don't have browser cookies, and you don't have a username cookie.
- In JS console execute:
document.cookie="username=JohnDoe; expires=Thu, 18 Dec 2016 12:00:00 UTC; path=/"; - In browser cookies you have a username cookie expiring in Dec 2016.
- Refresh page
- Now your cookie turned into session cookie because server is sending this:
Set-Cookie: username=JohnDoe;Path=/
Here the SC:
Before refresh:
After refresh:

Tested in the last 3.2.1 // Postgres // FF
I can confirm this behavior on my local 3.2 instance. The behavior is not unique to the name of the cookie, I also tried it was "test-cookie" instead of "username".
Added TC: http://qa.dotcms.com/index.php?/cases/view/61331
PR: https://github.com/dotCMS/core/pull/7999
QA: Please re-test #6823 #4840
Fixed, tested on 3.3 // MySQL // FF