|
|
|
@ -1243,6 +1243,9 @@ function session($name='',$value='') {
|
|
|
|
|
if(isset($name['name'])) session_name($name['name']);
|
|
|
|
|
if(isset($name['path'])) session_save_path($name['path']);
|
|
|
|
|
if(isset($name['domain'])) ini_set('session.cookie_domain', $name['domain']);
|
|
|
|
|
if (C('SESSION_COOKIE_PATH')) {
|
|
|
|
|
ini_set('session.cookie_path', C('SESSION_COOKIE_PATH'));
|
|
|
|
|
}
|
|
|
|
|
if(isset($name['expire'])) {
|
|
|
|
|
ini_set('session.gc_maxlifetime', $name['expire']);
|
|
|
|
|
ini_set('session.cookie_lifetime', 99999999);
|
|
|
|
|