saves session on session directory