mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
034a5c0288
commit
f70ce644ce
1410 changed files with 7188 additions and 53541 deletions
|
|
@ -80,7 +80,7 @@ class sessionController extends session
|
|||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_key = 'object:'.$session_key;
|
||||
$oCacheHandler->put($cache_key,$args);
|
||||
$oCacheHandler->put($cache_key,$args,$this->lifetime);
|
||||
}
|
||||
//put session into db
|
||||
if($session_info->session_key) $output = executeQuery('session.updateSession', $args);
|
||||
|
|
@ -91,7 +91,7 @@ class sessionController extends session
|
|||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_key = 'object:'.$session_key;
|
||||
$oCacheHandler->put($cache_key,$args);
|
||||
$oCacheHandler->put($cache_key,$args,$this->lifetime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -101,7 +101,7 @@ class sessionController extends session
|
|||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_key = 'object:'.$session_key;
|
||||
$oCacheHandler->put($cache_key,$args);
|
||||
$oCacheHandler->put($cache_key,$args,$this->lifetime);
|
||||
}
|
||||
//put session into db
|
||||
if($session_info->session_key) $output = executeQuery('session.updateSession', $args);
|
||||
|
|
@ -131,20 +131,7 @@ class sessionController extends session
|
|||
function gc($maxlifetime)
|
||||
{
|
||||
if(!$this->session_started) return;
|
||||
$expired_sessions = executeQueryArray('session.getExpiredSessions');
|
||||
if($expired_session)
|
||||
{
|
||||
foreach ($expired_sessions as $session_key)
|
||||
{
|
||||
//remove session from cache
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_key = 'object:'.$session_key;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
executeQuery('session.gcSession');
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue