session.php

来自「this the oscommerce 3.0 aplha 4」· PHP 代码 · 共 36 行

PHP
36
字号
<?php/*  $Id: $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2007 osCommerce  This program is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License v2 (1991)  as published by the Free Software Foundation.*/  include('../includes/classes/session.php');  class osC_Session_Admin extends osC_Session {    function delete($id) {      global $osC_Database;      if (STORE_SESSIONS == '') {        if (file_exists($this->_save_path . $id)) {          @unlink($this->_save_path . $id);        }      } elseif (STORE_SESSIONS == 'mysql') {        $Qsession = $osC_Database->query('delete from :table_sessions where sesskey = :sesskey');        $Qsession->bindRaw(':table_sessions', TABLE_SESSIONS);        $Qsession->bindValue(':sesskey', $id);        $Qsession->execute();        $Qsession->freeResult();      }    }  }?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?