PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm trying to get my site to warn IE users about their browser's incompliance, but I also want to let them set a cookie to get rid of the warning if they don't want it.
but I want this to last for the whole ~40 days. It currently only lasts for the session, then dies when I reopen internet explorer. In preferences cookies are set to last.
if you set the cookie in subdomain x, and want to access it in subdomain y, then you have to set the domain value, either in the cookie call, or with any of the ini setting functions.
I have only used linux / Mozilla based browsers for the past 3 years. I always thought that the browser will give a warning if a cookie is being accessed by a different domain. Does that apply to subdomains?
when (the browser is) working properly, the cookie isn't visible to any site but the domain it was set on. Additionally, a domain cannot set a different domain. Subdomains can set a cookie against the parent domain, because they are the same (to the browser). However, if a subdomain is set as the domain setting, then only that subdomain can access the cookie; although I'm not sure about the parent domain being able to access a subdomain cookie, as I haven't worked with that as yet