Cookies

L

lostman

Hi,

I need to make a little script that keep the info of a user on my site.
I use Cookie to make this work, but the problem i have is :

We have a lot of Sub-section on our site (www.mysite.com) like
ex.mysite.com, yyy.mysite.com, zzz.mysite.com, so each of them write is
cookie, can we make each of these sub-section and the principal site write
in the same cookie ?

Thank you.
 
R

Ray at

No, unfortunately, cookies cannot be accessed across domains in any way.
This is true for subdomains of the same parent or not.

Ray at home
 
T

Tim Williams

If you explicitly set the path as ".mysite.com" (don't leave off the leading
dot) then the cookie should be readable by all of your sub-domains.

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,081
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top