Added session support and Events for connect/disconnect