session cookie vs persistent cookie

Solutions on MaxInterview for session cookie vs persistent cookie by the best coders in the world

showing results for - "session cookie vs persistent cookie"
Lilli
18 Feb 2020
1There are two different types of cookies - session cookies and persistent cookies. If a cookie does not contain an expiration date, it is considered a session cookie. Session cookies are stored in memory and never written to disk. When the browser closes, the cookie is permanently lost from this point on. If the cookie contains an expiration date, it is considered a persistent cookie. On the date specified in the expiration, the cookie will be removed from the disk.