Log in

View Full Version : reading and settings cookies


marocnl
09-07-2007, 05:49 AM
Hi,

I am trying to set and read cookies in my own PHP script which I include in the template system.
I get a blank page if I want to read a cookie like $_COOKIE['name'] if i do this after including global. If I put it before, it works, but I need it after the global. I saw that there is a vbsetcookie function. Is there also a VB read functions for cookies?
Or is there another way to read my own set cookies?

marocnl
09-08-2007, 09:11 PM
Nobody has an idea for this? I can't find it in the docs or in this forum.

Opserty
09-08-2007, 09:28 PM
Can you post the code for your page?

It may not be a problem with the cookie itself, maybe something else has gone when you try and include vB via global.php.

Paul M
09-08-2007, 09:36 PM
They get moved from the $_COOKIE array to the $_REQUEST array.

Opserty
09-08-2007, 09:54 PM
Now why was I expecting it be something simple like that? :(