Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/session/inp_session_storage.php
Show All 9 Lines | |||||
* the GNU General Public License, and as distributed it includes | * the GNU General Public License, and as distributed it includes | ||||
* or is derivative of works licensed under the GNU General Public License | * or is derivative of works licensed under the GNU General Public License | ||||
* or other free or open source software licenses. | * or other free or open source software licenses. | ||||
* See http://www.in-portal.org/license for copyright notices and details. | * See http://www.in-portal.org/license for copyright notices and details. | ||||
*/ | */ | ||||
defined('FULL_PATH') or die('restricted access!'); | defined('FULL_PATH') or die('restricted access!'); | ||||
class InpSessionStorage extends SessionStorage { | class SessionStorage extends BaseSessionStorage | ||||
{ | |||||
public function Init($prefix, $special) | public function Init($prefix, $special) | ||||
{ | { | ||||
parent::Init($prefix, $special); | parent::Init($prefix, $special); | ||||
$this->TableName = TABLE_PREFIX.'UserSessions'; | $this->TableName = TABLE_PREFIX.'UserSessions'; | ||||
$this->SessionDataTable = TABLE_PREFIX.'UserSessionData'; | $this->SessionDataTable = TABLE_PREFIX.'UserSessionData'; | ||||
$this->IDField = 'SessionKey'; | $this->IDField = 'SessionKey'; | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | |||||
if( preg_match($mask_edit_table,$table,$rets) || preg_match($mask_search_table,$table,$rets) ) | if( preg_match($mask_edit_table,$table,$rets) || preg_match($mask_search_table,$table,$rets) ) | ||||
{ | { | ||||
$sid = preg_replace('/(.*)_(.*)/', '\\1', $rets[1]); // remove popup's wid from sid | $sid = preg_replace('/(.*)_(.*)/', '\\1', $rets[1]); // remove popup's wid from sid | ||||
$is_alive = $this->Conn->GetOne( sprintf($sql,$sid) ); | $is_alive = $this->Conn->GetOne( sprintf($sql,$sid) ); | ||||
if(!$is_alive) $this->Conn->Query('DROP TABLE IF EXISTS '.$table); | if(!$is_alive) $this->Conn->Query('DROP TABLE IF EXISTS '.$table); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
No newline at end of file |