Hello,
I am using the zenid as a unique identifier for naming files that a user creates when he visits a page.
I thought this was a good idea until I noticed that if a user creates several files without logging out the files get overwritten because the zenid only changes upon login.
So I decided to make a simple counter cookie that would increment every time the page was refreshed. This coulter value would somply be appended to the zenid for a truly unique file identification.
Now my problem is that cookies dont seem to be working within zen cart.
I am creating it with the following:
<?php
if (!isset($_COOKIE['Counter_Cookie'])) $_COOKIE['Counter_Cookie'] = 0;
$Counter_Cookie = $_COOKIE['Counter_Cookie'] + 1;
setcookie('Counter_Cookie',$Counter_Cookie);
?>
viewing cookies with javascript:alert(document.cookie); shows no cookie. The files created have the zenid with a 1 appended, but the 1 never incremements.
anyone have any ideas?
Thanks,



