Cartalyst\Sentinel\Cookies\CookieInterface::forget PHP Method

forget() public method

Remove the Sentinel cookie.
public forget ( ) : void
return void
    public function forget();

Usage Example

 /**
  * {@inheritDoc}
  */
 public function forget()
 {
     $code = $this->check();
     if ($code === null) {
         return;
     }
     $this->session->forget();
     $this->cookie->forget();
     return $this->remove($code);
 }
CookieInterface