Are HTTP cookies port specific?

前端 未结 8 2110
傲寒
傲寒 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:01

    It's optional.

    The port may be specified so cookies can be port specific. It's not necessary, the web server / application must care of this.

    Source: German Wikipedia article, RFC2109, Chapter 4.3.1

提交回复
热议问题