Extract current_session method