1.

Which attribute is used to extend the lifetime of a cookie?(a) Higher-age(b) Increase-age(c) Max-age(d) LifetimeThe question was asked in an international level competition.I'm obligated to ask this question of Cookies in portion Networking of Computer Network

Answer»

The correct CHOICE is (c) Max-age

Explanation: 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. A number of seconds until the cookie expires. A zero or negative number will kill the cookie IMMEDIATELY.



Discussion

No Comment Found

Related InterviewSolutions