Honor browser-length cookies and the SESSION_EXPIRE_AT_BROWSER_CLOSE setting.
Merge pull request #1986 from lindem/support/2.4.x

Honor browser-length cookies; SESSION_EXPIRE_AT_BROWSER_CLOSE setting.