Update session.cpp and session.hpp