Create temp_session context manager.