Forums / Setup & design / how to set a cookie in ez ?
nuno emilio
Friday 25 July 2003 7:57:39 am
Can anyone please tell me how could i set a cookie in a template operator php page. I've made a template operator page for a visit counter and i need to know if it's the first time (in that session) that the user enter the page (for incrementing the counter) or not (for not incrementing). I think that i must use cookies for that, but with the php function setcookie i couldn't create it. Can anyone tell me how can i use cookies in ez ? or there is a better away to do this without cookies ?
John van der Boom
Friday 25 July 2003 8:25:26 am
I'm having the same problem, but with reading cookies. Ez has problems reading cookies too. Think its an allround problem with ez not able to handle cookies very well (or at all).
A script of mine wich needs to read a cookie to see exactly if a member has already visit my page (just like yours), read the cookie standalone without any problem. But when I implement it in ez it won't.
I'll inform you when I figure out how to solve this. I think it's gonna be difficult tough. Let me know if you figure something out...