Revert "Don't delete session data when regenerating ids on login (this would also remove the data of logged in user)"

This reverts commit 676c69b2944131692bd4a7614889bd3449c6cbed.