add cookies and sessions