Jeroen Ooms
Jeroen Ooms

Reputation: 32988

Reading/writing permissions of cookie in subdir or parentdir

Suppose a cookie is set to /foo using

Set-Cookie: mytoken=12345; Path="/foo" 

Which of the following pages will be able to read and which will be able to write/remove this cookie?

/page.html
/foo/page.html 
/foo/bar/page.html
/baz/page.html

Upvotes: 0

Views: 147

Answers (1)

Paul
Paul

Reputation: 141897

Read/Write/Remove:

/foo/page.html 
/foo/bar/page.html

Upvotes: 1

Related Questions