[FO][BO] Allow setting cookie expire time to 0

Allow's cookie expiring on browser close
Merge pull request #1600 from natrim/patch-2

[*] CORE :  Allow setting cookie expire time to 0