public function set($name, $value = null, $time = 2592000)
    {
        $value = json_encode($value);
        parent::set($name, $value);

        setcookie($name, $value, time() + $time, '/', $this->server->get('name'));
    }
public function set($name, $value = null, $time = 2592000)
    {
        $value = json_encode($value);
        parent::set($name, $value);

        setcookie($name, $value, time() + $time, '/', $this->server->get('name'));
    }
public function set ( $ name , $ value = null , $ time = 2592000 ) { $ value = json_encode ( $ value ) ; parent :: set ( $ name , $ value ) ; setcookie ( $ name , $ value , time ( ) + $ time , '/' , $ this -> server -> get ( 'name' ) ) ; }
Set cookie information.

@param  string $name Cookie Name
@param  mixed  $value Cookie Value
@param  int    $time Cookie Lifetime.
@return void
Set cookie information .