« Return to the blog entry
Jake
I use to get cookie values like this:
codestore_name := @Middle(HTTP_COOKIE; "codestore_name="; ";");
It really works in every application I've done.
To set cookies I don't use @SetHTTPHeader, instead I write the actual html header:
<meta http-equiv="Set-Cookie" content="..." />
To specify the expiration date I've always used any of these formulaes:
{Link}
And remember that in the page you set the cookie, the HTTP_COOKIE field doesn't have the cookie value specified yet.
Regards
Jake
I use to get cookie values like this:
codestore_name := @Middle(HTTP_COOKIE; "codestore_name="; ";");
It really works in every application I've done.
To set cookies I don't use @SetHTTPHeader, instead I write the actual html header:
<meta http-equiv="Set-Cookie" content="..." />
To specify the expiration date I've always used any of these formulaes:
{Link}
{Link}
And remember that in the page you set the cookie, the HTTP_COOKIE field doesn't have the cookie value specified yet.
Regards