Cookies can be set to be valid only for surtain calling urls.
for example, a cookie made valid for "/" is avialable to every calling url,
but cookies made valid for "/here/" are only available if you call them from a script in whose url starts with "/here/"
Check out the manual on what it says about cookies, could be helpful.