public function set($key, $value=null)
    {
        $this->start();
        
        $_SESSION[$key] = $value;
        
        //session_write_close();
        
        $sdata = is_scalar($key) ? [$key => $value] : $key;
        \Wslim\Ioc::logger('session')->debug(sprintf('[%s]set %s:%s', static::getId(), $key, print_r($value, true)));
        
        return $this;
    }
public function set($key, $value=null)
    {
        $this->start();
        
        $_SESSION[$key] = $value;
        
        //session_write_close();
        
        $sdata = is_scalar($key) ? [$key => $value] : $key;
        \Wslim\Ioc::logger('session')->debug(sprintf('[%s]set %s:%s', static::getId(), $key, print_r($value, true)));
        
        return $this;
    }
public function set ( $ key , $ value = null ) { $ this -> start ( ) ; $ _SESSION [ $ key ] = $ value ; //session_write_close(); $ sdata = is_scalar ( $ key ) ? [ $ key => $ value ] : $ key ; \ Wslim \ Ioc :: logger ( 'session' ) -> debug ( sprintf ( '[%s]set %s:%s' , static :: getId ( ) , $ key , print_r ( $ value , true ) ) ) ; return $ this ; }
Writes the given session information to the given name

@param string $name The name to write to
@param mixed  $value The value to write
Writes the given session information to the given name