Set Domain on ASP Session Cookie
How do I set the domain on the session cookie generated by classic ASP?
I'm using 2 urls for my site, www.example.com and shop.exam开发者_Python百科ple.com and I need the session cookie sent to both.
You should set it to:
Response.Cookies("YourCookieName").domain = ".example.com"
Note the leading "."
精彩评论