mcmuney Posted January 18, 2008 Share Posted January 18, 2008 I'd like to utilize cookies to track what users are submitting on a site that doesn't offer registration. But I know absolutely nothing about building it in. Can I get some tutorials and/or samples on how to incorporate them. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/86574-using-cookies/ Share on other sites More sharing options...
revraz Posted January 18, 2008 Share Posted January 18, 2008 Search google for PHP Cookies http://www.w3schools.com/php/php_cookies.asp Link to comment https://forums.phpfreaks.com/topic/86574-using-cookies/#findComment-442348 Share on other sites More sharing options...
mcmuney Posted January 18, 2008 Author Share Posted January 18, 2008 Thanks. Now that i know how to create a cookie and retrieve. How do I know add data to it? For example, I operate a free image hosting site and when a user uploads an image, I want to record the image id and other information in the already established cookie. Link to comment https://forums.phpfreaks.com/topic/86574-using-cookies/#findComment-442422 Share on other sites More sharing options...
revraz Posted January 18, 2008 Share Posted January 18, 2008 Use the setcookie() function. Link to comment https://forums.phpfreaks.com/topic/86574-using-cookies/#findComment-442423 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.