Implemented cookies and sessions.