webref.eu Posted May 31, 2009 Share Posted May 31, 2009 Hi All I have allowed member users of my website to be remembered by the dropping of two cookies, cookname and cookpass. You can see the cookies as created in Firefox 3 in the image below. How do I check for the existence of the cookie and retrieve it's value, e.g. the value of cookname is nambock, so how do I retrieve that value? Many thanks Link to comment https://forums.phpfreaks.com/topic/160361-how-do-i-retrieve-cookie-value/ Share on other sites More sharing options...
Flames Posted May 31, 2009 Share Posted May 31, 2009 $variable = $_COOKIE['cookname'] Link to comment https://forums.phpfreaks.com/topic/160361-how-do-i-retrieve-cookie-value/#findComment-846232 Share on other sites More sharing options...
webref.eu Posted May 31, 2009 Author Share Posted May 31, 2009 Thanks. This may be a rather basic question, but would I be right in saying that the host setting under which to look for the cookie never needs to be specified because this is automatically known from the site I am browsing at? Rgds Link to comment https://forums.phpfreaks.com/topic/160361-how-do-i-retrieve-cookie-value/#findComment-846236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.