PDA

View Full Version : Cookies and Domains


Marlboro
03-20-2001, 06:34 AM
Question:
If i have a webfarm and want to use cookies and the site is a frame site (typical 2 frame top/bottom) and the top frame resides at servera.domain.com and the rest of the lower frames contain pages from both servera.domain.com and serverb.domain.com will I be able to read cookies that are set by serverb.domain.com on pages that reside in servera.domain.com?

Also - I can set the domain for the cookies with response.cookies("cname").domain = "mydomian.com" but using request.cookies("cname").domain returns an error - what is the correct method of retrieving the servering (or owning) domain for a given cookie?

tia
mark

MattWilliams
03-20-2001, 06:56 AM
Yes providing you set the domain to just "domain.com" and not "servera.domain.com" you should be able to read the cookies,