Two types of cookies
Temporary: These cookies will be deleted from your browser you close the browser
Permanent: These cookies will be there after closing the browser.
Because for cookies, They have the name,value,age. If you set the age for the cookie, that will be there until the age==-1. Because the default age for cookie is -1.These type of cookies will be closed, when ever we close the browser.