Hi there,
I'm registering a cookie at sub.myhost.com/folder1/index.php and it works great. I tried to use the same cookie for sub.myhost.com/folder2/index.php, but it doesn't work - although when I right click -> show page info -> security -> show cookies (firefox), the cookie I want to read from is listed. So why won't this work, and how can I fix it?
Thanks.
cookie problem - using a cookie for two different folders.
Moderator: General Moderators
Re: cookie problem - using a cookie for two different folders.
You answered your own question.
If you "register" a cookie for one folder it is only available at that folder and deeper.JKM wrote:I'm registering a cookie at sub.myhost.com/folder1/index.php and it works great. I tried to use the same cookie for sub.myhost.com/folder2/index.php
Re: cookie problem - using a cookie for two different folders.
So there isn't a way to register the cookie for two folders or for all folders at sub.myhost.com?
Thanks for your reply!
Thanks for your reply!
Re: cookie problem - using a cookie for two different folders.
Yeah, it's possible.
Any reason you can't just set it for /? Why two paths?
Any reason you can't just set it for /? Why two paths?
Re: cookie problem - using a cookie for two different folders.
folder1 is IP-restricted with htaccess, but the content (except the admin content) at folder2 should be available for anyone. Could you please tell me how?
Again, thanks a lot!
Again, thanks a lot!