Session fix

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | ---
| Fixed tickets | ---
| Refs tickets  | ---
| License       | MIT
| Doc PR        | ---

It's hard to tell what exactly this fixes, however I had problems with sessions at my dev site when I wasn't visiting it for some time, I had to clear the cookies, else all csrf token checks failed. Only clearing the cookies helped. This PR however seems to fix the problem.