Thanks, adding the path worked perfectly. I was afraid that perhaps the cookies could only be seen within the scope of a global.asa, but that's clearly not the case. I appreciate your help!
Main Topics
Browse All TopicsI'm trying to create cookies that can be seen from anywhere on a site that has multiple IIS applications, but am running into problems. The site has several major sections and a number of separate IIS applications, organized like this:
domain.com
domain.com/section1
domain.com/section1/applic
domain.com/section1/applic
domain.com/section1/applic
domain.com/section2
domain.com/section2/applic
domain.com/section2/applic
domain.com/section2/applic
domain.com/section3
domain.com/section3/applic
domain.com/section3/applic
domain.com/section3/applic
etc.
I'm using ASP and ASP.NET on IIS6. When I don't specify a domain while creating the cookie, I get one cookie for each application, like this:
www.domain[1]
www.domain[2]
www.domain[3]
etc.
Here's the very simple code I'm using:
response.cookies("pagesize
response.cookies("pagesize
I have tried unsuccessfully tried specifying domain values like this:
response.cookies("pagesize
and
response.cookies("pagesize
But that doesn't seem to work at all.
Is there a way to accomplish what I'm after, or do IIS Applications restrict cookies? Any ideas or suggestions are welcome!
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ap_sajithPosted on 2007-01-07 at 11:02:58ID: 18262712
Try this..
") = 50 ").expires = Date + 365 ").domain = "domain.com" ").path = "/"
response.cookies("pagesize
response.cookies("pagesize
response.cookies("pagesize
response.cookies("pagesize
This should make it work for all pages/virtual directories under the specified domain name. As far as I know, there is no IIS settings that would disable the cookies. Cookies are normally blocked only from the client side. I.e, your browser. Cookies are send as part of the standard HTTP header and hence unless you have completely modified your base IIS settings (meta files), the setting of cookies would not be an issue.
Let me know if the above solution sorts out the issue. If not we can look at other avenues.
Cheers!