public function setFlashCookieObject($name, $object, $time = 60)
    {
        setcookie($name, json_encode($object), time() + $time, '/');

        return $this;
    }
public function setFlashCookieObject($name, $object, $time = 60)
    {
        setcookie($name, json_encode($object), time() + $time, '/');

        return $this;
    }
public function setFlashCookieObject ( $ name , $ object , $ time = 60 ) { setcookie ( $ name , json_encode ( $ object ) , time ( ) + $ time , '/' ) ; return $ this ; }
Store something in cookie temporarily.

@param string $name
@param mixed $object
@param int $time
@return $this
Store something in cookie temporarily .