本文整理匯總了PHP中Illuminate\Cookie\CookieJar::forget方法的典型用法代碼示例。如果您正苦於以下問題:PHP CookieJar::forget方法的具體用法?PHP CookieJar::forget怎麽用?PHP CookieJar::forget使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Cookie\CookieJar
的用法示例。
在下文中一共展示了CookieJar::forget方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: forget
/**
* Expire the given cookie.
*
* @param string $name
* @param string $path
* @param string $domain
* @return \Symfony\Component\HttpFoundation\Cookie
* @static
*/
public static function forget($name, $path = null, $domain = null)
{
return \Illuminate\Cookie\CookieJar::forget($name, $path, $domain);
}
示例2: forget
/**
* {@inheritDoc}
*/
public function forget()
{
$cookie = $this->jar->forget($this->key);
$this->jar->queue($cookie);
}
示例3: destroy
/**
* {@inheritDoc}
*/
public function destroy($sessionId)
{
$this->cookie->queue($this->cookie->forget($sessionId));
}
示例4: forget
/**
* Remove the Sentry cookie.
*
* @return void
*/
public function forget()
{
$this->cookie = $this->jar->forget($this->getKey());
}
示例5: delete
/**
* Delete a cookie
*
* @param string $cookieName
*
* @return bool
*/
public function delete($cookieName)
{
$cookie = $this->cookie->forget($cookieName);
$this->cookie->queue($cookie);
return true;
}
示例6: forget
/**
* Expire the given cookie.
*
* @param string $name
* @return \Symfony\Component\HttpFoundation\Cookie
* @static
*/
public static function forget($name)
{
return \Illuminate\Cookie\CookieJar::forget($name);
}