samedi 2 février 2019

security of the cookie?

During my searching, I would like some help about this :

enter image description here

Question : which cookie will the browser send when requesting the following URLs (justify)

http ://subdomain2.host.com ?

--> the cookie 2 'cause his domain is .host.com, is it right ? What is path="/" ?

https://subdomain2.host.com ?

--> I don't know !

http://subdomain1.host.com ?

--> the first cookie 'cause the domain is subdomain1.host.com, is it right ?

I have an other question :

if I have the following cookie :

name=cookie1;value=1;domain=.host.com;path=/trusted

name=cookie2;value=2;domain=.host.com;path=/untrusted

Can a web page from host.com/untrusted read cookie1 ? Justify ?




Aucun commentaire:

Enregistrer un commentaire