public function destroy()
    {
        unset($this->storage);

        $_SESSION = [];
        session_destroy();
        $this->startSession();

        $this->storage = & $_SESSION;

        return $this;
    }
public function destroy()
    {
        unset($this->storage);

        $_SESSION = [];
        session_destroy();
        $this->startSession();

        $this->storage = & $_SESSION;

        return $this;
    }
public function destroy ( ) { unset ( $ this -> storage ) ; $ _SESSION = [ ] ; session_destroy ( ) ; $ this -> startSession ( ) ; $ this -> storage = & $ _SESSION ; return $ this ; }
Clears all session data and regenerates session ID

@return $this
Clears all session data and regenerates session ID