Session::set PHP Method

set() public static method

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

Example #1
0
File: set.php Project: 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