ExamVeda
Login
Home
Document Object Model and Event Handling
?

Which attribute is used to extend the lifetime of a cookie?

Answer & Solution
Correct Answer: Option C
If you want a cookie to last beyond a single browsing session, you must tell the browser how long (in seconds) you would like it to retain the cookie by specifying a max-age attribute. If you specify a lifetime, the browser will store cookies in a file and delete them only once they expire.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.