Session::set PHP 메소드

set() 공개 정적인 메소드

sets a specific value to a specific key of the session
public static set ( mixed $key, mixed $value )
$key mixed key
$value mixed value
    public static function set($key, $value)
    {
        $_SESSION[$key] = $value;
    }

Usage Example

예제 #1
0
파일: set.php 프로젝트: anqqa/Anqh
 /**
  * Set page width
  *
  * @param  string  $width
  */
 public function width($width)
 {
     $this->session->set('page_width', $width == 'wide' ? 'liquid' : 'fixed');
     if (request::is_ajax()) {
         return;
     }
     url::back();
 }
All Usage Examples Of Session::set