invalidate method

void invalidate()

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

Implementation

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