Commit afcc97a8 authored by 夏彬's avatar 夏彬

修改session cookie时间

parent efc3bb75
...@@ -6,10 +6,10 @@ if(!defined('InEmpireCMS')) ...@@ -6,10 +6,10 @@ if(!defined('InEmpireCMS'))
define('InEmpireCMSUser',TRUE); define('InEmpireCMSUser',TRUE);
//set session expiration //set session expiration
ini_set('session.gc_maxlifetime', 172800); ini_set('session.gc_maxlifetime', 1296000);
// each client should remember their session id for EXACTLY 1 hour // each client should remember their session id for EXACTLY 1 hour
session_set_cookie_params(172800); session_set_cookie_params(1296000);
session_start(); session_start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment