I save a cookie when somebody visits my site. Later (when the place
an order) I want to read the cookie (so I can pay a referral fee).
However, if they visit the site by entering www.mysite.com and return
to the site by entering mysite.com (without the www), I don't find my
cookie ('cause I saved it in username@www.mysite.com and am reading
from username@mysite.com). How can I avoid this "www" issue?

Thanks,

Steve

Re: Problem reading cookie w(wo) www by Aaron

Aaron
Tue Apr 13 23:09:32 CDT 2004

Have you tried using the .Domain property when creating the cookie? I
believe at one point there was a browser that didn't like this property
(Netscape 4.0x maybe?) but it should work okay for 99.999% of your
audience...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steve" <junk@bruff.com> wrote in message
news:97327c0.0404131955.7e2f4e10@posting.google.com...
>I save a cookie when somebody visits my site. Later (when the place
> an order) I want to read the cookie (so I can pay a referral fee).
> However, if they visit the site by entering www.mysite.com and return
> to the site by entering mysite.com (without the www), I don't find my
> cookie ('cause I saved it in username@www.mysite.com and am reading
> from username@mysite.com). How can I avoid this "www" issue?
>
> Thanks,
>
> Steve