Fix default session lifetime to 0
Merge pull request #1093 from nlegoff/fix-session-lifetim

[3.8] Fix cookie session lifetime