MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Computer Networks
Cookie
Q
Which attribute is used to extend the lifetime of a cookie?
AA. Higher-age
BB. Increase-age
CC. Max-age
DD. Lifetime
Correct Answer:
C. 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.