Jump to content

Cookie location


noon

Recommended Posts

I am performing some AJAX/PHP functions and I am calling a check_user.php page from a subdirectory, lib (site_root/lib/check_user.php).  check_user.php is checking if valid login credentials were supplied and creating a cookie to identify that the user has been validated.  When I view my cookies the path for the cookie is site_root/lib/. Is there a way to prevent this?  I would like to keep my php file in the location that it is, but if moving it back to the site_root is the only option I can live with this.

Link to comment
https://forums.phpfreaks.com/topic/112639-cookie-location/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.