noon Posted June 30, 2008 Share Posted June 30, 2008 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 More sharing options...
PFMaBiSmAd Posted June 30, 2008 Share Posted June 30, 2008 The description of the setcookie() function in the php manual describes how to set the path parameter. Link to comment https://forums.phpfreaks.com/topic/112639-cookie-location/#findComment-578465 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.