Need help with PHP cookies?

Josh

New member
Ive set many PHP cookies, and have tried ot retrieve them on a different page then I set them on.

For instance, i set a cookie with a php file in a folder named login, and it was successfully set.
But when trying to retrieve the cookie information on the homepage (which is up a dir.) it said cookie could not be found.

Same with trying to delete it, it could only be retrieved and deleted with a file in the login folder.

When you moved the file that sets it into the main dir., and retrieve it with the homepage, it can retrieve it fine. but trying to delete it with the file in the login folder wouldn't work until you moved the file out into the main dir.

Thanks! Tell me how to fix it if possible!!!
 
Back
Top