revert session.c