开发者

Set Domain on ASP Session Cookie

开发者 https://www.devze.com 2023-01-07 14:01 出处:网络
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 bot

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 "."

0

精彩评论

暂无评论...
验证码 换一张
取 消