Hi
I'm creating a cookie called "parentid" using a PHP script outside of Silverstripe. My browsers confirm that the session has been created correctly.
I'm now trying to access this within Silverstripe, using the following code:
public function getParentID() {
if (isset($_COOKIE['parentid'])) {
return $_COOKIE['parentid'];
}
}
Then in the template using $getParentID
However, the code refuses to get the session content.
Any help would be appreciated.