Changed cookies to session