php.ini 设置cookie_lifetime 默认为0,代表关闭浏览器就失效
单位为秒数,例子:604800 7天后失效
php.ini 设置gc_maxlifetime 默认为24分钟,session有效时间