Jump to content

Problem retreiving cookie - please heeeelp me !!


ghostwalkz

Recommended Posts

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.