Added more security regarding the usage of cookies.