开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜