I would like to suggest to everyone that we all try to set cookies for just our own subdirectories on the onepotcooking.com domain. I think it would be helpful in preventing cookies that may conflict with each other's sites (especially since many of us are using cookies with the same names).
So basically, instead of:
$cookiePath = "/"you might put this:
$cookiePath = "/yournamehere/"I'm using this and it seems to work:
$cookiePath = "/sharonnikfarjam/class7"
2 comments:
Thanks Sharron, I thought the "/" was related to a higher level than it really is. Your suggestions worked for me too.
I question the conflict issue mentioned though... If all our cookies were set to "/" path, wouldn't the only conflict be if we went through our own project and then visited another? Then only would it be a problem if we all had named the cookies for login the same but perhaps had others missing.
Have you witnessed conflicts?
Actually, that's exactly what I did. I was checking out your site and then I came back to mine and saw that my site had access to your cookies. I suddenly had two user cookies and two 'loggedin' cookies.
It did not cause a conflict but I'm sure it could have if my site were in a more advanced state. (I'm still putting together the uploading part of the page so I'm just getting to the part where I use the username.)
Mostly, I thought it would be good for people to think about the issue and the possibility for conflicts.
Thanks!
Post a Comment