Can you install the contributed ezenv operator? It is doing what you want but for post/get vars. Session and cookie variables should be almost the same.
I installed the ezenvoperator. And I think it's working, because it's not giving me the ezenv not registered warning. Si it's the ezcookie operator that's giving me problem.
You're telling me that cookie and session vars should be the same. I have a cookie named member_id so:
{"member_id"|ezenv}
should work right?
That's not the case :(
I took a closer look at the ezenv operator and it wn't work with cookies. Because it's using eZHTTPTool. I don't think eZHTTPTool can handle cookies. Correct me if I'm wrong.
This cookie thing is giving me a headache. Am I the only one trying to do something with cookies or having problem with cookies? I'm getting desperate here.
the ezenv operator indeed only works for post/get vars. Can't you use the $GLOBALS array directly and look up the cookie vars? Which server sets these cookies (it should be done within your ezp server, otherwise it won't show up)?
$_COOKIE is working correctly in the index.php of ezP. But when I call the $_COOKIE in the template (using the insert operator for a php file) to call the $_COOKIE I get nothing.
Printing the $_COOKIE array also shows me blank, nada, null :-( eZ isn't showing me the cookies. I'm working on the same server here.
So index.php: cookie are showed perfectly In template using (insert operator for php): no cookies