Cartalyst\Sentinel\Sessions\SessionInterface::forget PHP Method

forget() public method

Removes the Sentinel session.
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);
 }
SessionInterface