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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.