Set the session lifetime based on cookie maxAge