Implement session save.