Only live in the browser’s memory, and never stored anywhere. When the browser closes, the cookie is permanently lost from this point on. hence it gets destroyed when the browser session ends.
Stored on the browser’s hard drive. By default, max age set for this cookie is 1 year.Note: One year is the max age of these cookies, this doesn’t mean these cookies will last for one year. These cookies actually will live as long as the browser. But “REMEMBER_ME” will last for one year if the user doesn’t uncheck “Remember me”.All cookies are set by the server via the Set-Cookie HTTP Header. A browser knows to store that cookie as a persistent cookie when it finds the keyword ‘Expires=’ followed by a date in the future. If there is no ‘Expires=’ tag, or if the specified date has already passed, then the browser will keep the cookie in browser memory only as a session cookie.