invalidate method

void invalidate()

Remove all data and give the session a new id and a new CSRF token. Use it on logout.

Implementation

void invalidate() {
  flush();
  regenerate();
}