Fix getting session with timestamp.