Bugfix old client returning with an still active session was not used.
SYB standards, two spaces instead of tabs.
Add a onconnect hook.