How do I set the domain for all cookies issued within an asp site using just iis

Barry

New member
and not script? We have a legacy application that is accessed using several different variations on the same domain, this application consisting of nearly 1000 separate asp files with over 1500 locations that could write to a cookie (yes it is crazy, but I have to live with it!).
The question is can I set the cookie domain to be "domain.com" in anyway at the global site or iis level without having to modify all of those source files by hand to add

Response.cookies("key").Domain = "domain.com" before each call, I'm not even able to add a global header as they use a selection of different key values.

So is it possible to do this globally or should I fire up notepad and start editing all of those Response.cookie statements.

Anyhelp gratefully received

Thanks

Barry
 
Back
Top