ghostwalkz Posted April 20, 2007 Share Posted April 20, 2007 I have cookie set by one of the 3rd part components of my site. Its name is ´usercookie[username]´. I am writing a new php page and need to determine which user is logged in from this cookie. I am using the following code which works with other cookies: <?php $currentuser = $_COOKIE["usercookie[username]"]; ?> But it returns nothing, any ideas, is it something to do with the square brackets that are within the cookie name? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/47960-problem-retreiving-cookie-please-heeeelp-me/ Share on other sites More sharing options...
MadTechie Posted April 20, 2007 Share Posted April 20, 2007 post the code that sets the cookie Link to comment https://forums.phpfreaks.com/topic/47960-problem-retreiving-cookie-please-heeeelp-me/#findComment-234372 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.