规范文件

This commit is contained in:
thinkphp
2015-02-21 17:32:41 +08:00
parent 9346bda0f0
commit 1a4a102b49
11 changed files with 32 additions and 70 deletions

View File

@@ -138,7 +138,7 @@ class Session {
* @return void
*/
static public function delete($name,$prefix='') {
$prefix = $prefix?$prefix:$this->prefix;
$prefix = $prefix ? $prefix : self::$prefix;
if(strpos($name,'.')){
list($name1,$name2) = explode('.',$name);
if($prefix){
@@ -161,7 +161,7 @@ class Session {
* @return void
*/
static public function clear($prefix='') {
$prefix = $prefix?$prefix:self::$prefix;
$prefix = $prefix ? $prefix : self::$prefix;
if($prefix) {
unset($_SESSION[$prefix]);
}else{