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

  • (A) higher-age
  • (B) increase-age
  • (C) max-age
  • (D) lifetime
πŸ’¬ Discuss
βœ… Correct Answer: (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. If you specify a lifetime, the browser will store cookies in a file and delete them only once they expire.
Explanation by: Mr. Dubey
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
149
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate