I'm trying to pass cookies from PHP to the rendered webpage.
My configuration is:
$config = array(
"logLevel"=> \LogLevel::DEBUG,
"javaScriptMode" => \JavaScriptMode::ENABLED_REAL_TIME,
"enableDebugMode" => true,
"cookies" => array(
array(
"key" => "sid",
"value" => "abc"
),
array(
"key" => "soid",
"value" => "def"
)
)
);
But when I try to access the cookies via document.cookie, the property is empty.
Any suggestions?