Move session-specific functionality into session.c