[ic] read-cookie and set-cookie on same page

Rene Hertell interchange-users@interchange.redhat.com
Sat Mar 30 19:07:01 2002


Hi,

I'm having a few problems with cookies.

I have a test-page with a simple set-cookie tag:
[set-cookie name="test"
            value="[calc][read-cookie test]+1[/calc]"
            expire="Fri, 31-May-2002 23:59:59 GMT"
            domain="__SERVER_NAME__"
            path="/" ]

This works fine when I'm loading the page for the first time (or in a fresh
browse-window), but if I refresh the page, IC does not more respond.. I have
to open a new browser-window and enter that page again to get that cookie
set.

Is there any tricks in setting cookies, like where in the html-code the
set-cookie command should be placed? I have this code just in the middle of
my html-code, and it works on the first try just fine, but hangs on a
refresh...



Regards,

	René