Cookie Options Flashcards
1
Q
domain
A
Controls the domain the cookie is associated with; allows you to assign cookies to a specific subdomain
2
Q
path
A
Controls the path to which a cookie applies
3
Q
maxAge
A
Specifies in milliseconds how long the client should keep the cookie before deleting it
4
Q
secure
A
Specifies that this cookie will be sent only over a secure (HTTPS) connection
5
Q
httpOnly
A
Cookie will be modified only by the server. It cannot be modified by JavaScript. Helps prevent XSS attacks
6
Q
signed
A
Sign this cookie, making it available to res.signedCookies instead of res.cookies. Cookies that have been tampered with will be rejected by the server and cookie will be reset to original value