[3.8] Fix cookie session lifetime