Reset session when attaching/detaching user