Cookies types - State Management System

Q.  What are the types of cookies?
- Published on 24 Jul 15

a. Session cookies
b. Persistent cookies
c. Dummy cookies
d. Option A and B are correct

ANSWER: Option A and B are correct
 

    Discussion

  • Raj   -Posted on 20 Oct 15
    There are two types of cookies: session cookies and persistent cookies. A session cookie exists only in memory. If a user closes the web browser, the session cookie will be lost.
    A persistent cookie, on the other hand, can remain for months or even years. When you create a persistent cookie, the cookie is stored permanently by the user’s browser on the user’s computer. For creating permanent cookie you must add the expire property with the cookie.

➨ Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
▲