cookies and cookies storage implementation