Handling session status transition