Cookie Options Flashcards

1
Q

domain

A

Controls the domain the cookie is associated with; allows you to assign cookies to a specific subdomain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

path

A

Controls the path to which a cookie applies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

maxAge

A

Specifies in milliseconds how long the client should keep the cookie before deleting it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

secure

A

Specifies that this cookie will be sent only over a secure (HTTPS) connection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

httpOnly

A

Cookie will be modified only by the server. It cannot be modified by JavaScript. Helps prevent XSS attacks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly