mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#168 php설정의 session.auto_start=0일 경우 세션 파기 시간을 5시간으로 늘리고 세션저장 경로를 ./files/sessions 로 저장하도록 설정 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2606 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fc203fd439
commit
11a02266fa
1 changed files with 13 additions and 3 deletions
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
@error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
/**
|
||||
* @file config/config.inc.php
|
||||
* @author zero (zero@nzeo.com)
|
||||
|
|
@ -83,8 +85,16 @@
|
|||
|
||||
/**
|
||||
* @brief 세션 설정
|
||||
* 세션의 파기 시간을 5시간으로 하고 세션 저장 경로를 files/session 으로 변경
|
||||
**/
|
||||
@session_cache_limiter('no-cache, must-revalidate');
|
||||
@ini_set("session.gc_maxlifetime", "18000");
|
||||
@session_start();
|
||||
if(!ini_get('session.auto_start')) {
|
||||
session_cache_limiter('no-cache, must-revalidate');
|
||||
ini_set("session.gc_maxlifetime", "18000");
|
||||
if(!is_dir("./files/sessions")) {
|
||||
FileHandler::makeDir("./files/sessions");
|
||||
chmod("./files/sessions", 0777);
|
||||
}
|
||||
session_save_path(realpath('.')."/files/sessions/");
|
||||
session_start();
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue