Implemented the deserialization in the Session handler.