mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
세션 처리를 DB가 아닌 php 설정 파일로 할 수 있는 옵션을 추가.
동시접속자가 많아서 DB 커넥션 및 부하가 많아질 경우 유용함 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6147 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
55fc3c1224
commit
4e471115f4
13 changed files with 46 additions and 11 deletions
|
|
@ -113,16 +113,18 @@
|
|||
$this->loadLang(_XE_PATH_.'modules/module/lang');
|
||||
|
||||
// 세션 핸들러 지정
|
||||
$oSessionModel = &getModel('session');
|
||||
$oSessionController = &getController('session');
|
||||
session_set_save_handler(
|
||||
array(&$oSessionController,"open"),
|
||||
array(&$oSessionController,"close"),
|
||||
array(&$oSessionModel,"read"),
|
||||
array(&$oSessionController,"write"),
|
||||
array(&$oSessionController,"destroy"),
|
||||
array(&$oSessionController,"gc")
|
||||
);
|
||||
if($this->db_info->use_db_session != 'N') {
|
||||
$oSessionModel = &getModel('session');
|
||||
$oSessionController = &getController('session');
|
||||
session_set_save_handler(
|
||||
array(&$oSessionController,"open"),
|
||||
array(&$oSessionController,"close"),
|
||||
array(&$oSessionModel,"read"),
|
||||
array(&$oSessionController,"write"),
|
||||
array(&$oSessionController,"destroy"),
|
||||
array(&$oSessionController,"gc")
|
||||
);
|
||||
}
|
||||
session_start();
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue