Set Domain in ASP Session Cookie

How to set a domain in a session cookie created by classic ASP?

I use 2 URLs for my site, www.example.com and shop.example.com, and I need a session cookie that is sent to both.

+3
source share
1 answer

You must install it:

Response.Cookies("YourCookieName").domain = ".example.com"

Pay attention to the host "."

+1
source

Source: https://habr.com/ru/post/1754716/


All Articles