Are HTTP cookies port specific?

前端 未结 8 1879
傲寒
傲寒 2020-11-22 04:14

I have two HTTP services running on one machine. I just want to know if they share their cookies or whether the browser distinguishes between the two server sockets.

8条回答
  •  抹茶落季
    2020-11-22 05:00

    In IE 8, cookies (verified only against localhost) are shared between ports. In FF 10, they are not.

    I've posted this answer so that readers will have at least one concrete option for testing each scenario.

提交回复
热议问题