Changed the value of set_cookie() 'expires' from 3x109 3x108 (10 years)
The initial value was triggering 2038 issues or some platforms (or pure
integer overflows, did not check). Also admit long as param type inside
set_cookie() as there does not seem to be any reason not to.