Added cookie-based persistence.