public function destroy()
    {
        if ($this->active)
        {
            $this->clear();
            if (session_status() === PHP_SESSION_ACTIVE)
                session_commit();
            $this->active = false;
        }
        return $this;
    }
public function destroy()
    {
        if ($this->active)
        {
            $this->clear();
            if (session_status() === PHP_SESSION_ACTIVE)
                session_commit();
            $this->active = false;
        }
        return $this;
    }
public function destroy ( ) { if ( $ this -> active ) { $ this -> clear ( ) ; if ( session_status ( ) === PHP_SESSION_ACTIVE ) session_commit ( ) ; $ this -> active = false ; } return $ this ; }
Should be called when the session should be cleared and destroyed.
@return Wedeto\HTTP\Session Provides fluent interface
Should be called when the session should be cleared and destroyed .