chmpdog Posted May 27, 2008 Share Posted May 27, 2008 Hi, Right now I am storing both the password and username in cookies. The cookies are created when the user logs in on the main directory. But when the user goes to a different directory, such as root.com/folder, the cookies dont work. Well they work, but it creates a new cookie, so no one can log out. Is there a way to make the cookies work for all the subdirectories? Thanks Link to comment https://forums.phpfreaks.com/topic/107473-cookies-for-the-entire-site/ Share on other sites More sharing options...
revraz Posted May 27, 2008 Share Posted May 27, 2008 Post your setcookie code. You basically just need to use "/" in it. Link to comment https://forums.phpfreaks.com/topic/107473-cookies-for-the-entire-site/#findComment-550876 Share on other sites More sharing options...
roopurt18 Posted May 27, 2008 Share Posted May 27, 2008 Right now I am storing both the password and username in cookies. Alarm bells are ringing' date=' Willy.[/quote'] Link to comment https://forums.phpfreaks.com/topic/107473-cookies-for-the-entire-site/#findComment-550887 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.