views:

11

answers:

1

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.example.com and I need the session cookie sent to both.

A: 

You should set it to: Response.Cookies("YourCookieName").domain = ".example.com"

Note the leading "."

AdamH
I'm try to set the domain on the session cookie created by ASP, not a cookie I create.
Yisroel