221k views
5 votes
Which attribute of a cookie do you set to create a persistent cookie?

Question 8 options:

max-age

path

domain

secure

1 Answer

6 votes

Answer:

max_age

Step-by-step explanation:

A HTTP Cookie represents a piece of data which is stored by a website on the web-browser. It can contain information relevant to the , for example, username, layout preference etc. Normally, a cookie gets deleted when the browser is closed. However,a persistent cookie remains stored across multiple browser sessions.Cookie can be made persistent by setting its max_age attribute. max_age represents the number of seconds after which the cookie will deleted from the browser.

User Bora Sumer
by
6.0k points