Implemented persistent sessions.