Cookies with and without the Domain Specified (browser inconsistency)

前端 未结 2 707
萌比男神i
萌比男神i 2020-12-04 17:25

I\'ve noticed that there are some real inconsistencies between browsers in terms of cookies.

This is going to be rather long so bear with me.

Note:

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 18:20

    @WilliamBZA's suggestion helped solve the initial problem, but then signout/session timeout bug that results in the cookie creating an implicit domain cookie has made me come to the conclusion that the solution is...

    Don't use Explicit cookies in .NET... ever

    There are far too many problems, sure they can be solved by being explicit on the Form/Domain, Cookie/Domain, etc. To ensure that the correct domain is used everywhere. But if your application hosts multiple domains or is multi tenant, then it just becomes too problematic.

    Lesson is learnt. Don't use explicit cookies.

提交回复
热议问题