Setting the cookies and gettings the cookies