Actually, I'm not looking for a function. In perl, you can simply print http headers like so:
CODE
print "Location: http://www.astahost.com\n";
print "Cookie: name = 'name', value = value\n";
print "Content-type: text/html\n\n";
The double newline character signals the end of the headers. I was wondering if using echo or print in php, the same thing was possible, because when I tried it, nothing happened, and I wondered if a special format was required, like maybe [code]echo httphead "Content-type: text/html\n\n";
And as for the expires, setting a negative expiration causes the cookie to be wiped immediately, it's a trick used by logout scripts. And i could set it to expire in one hundred years or so, but it will still expire. So that would be a no it isn't possible answer.
But thanks anyway.
~Viz
Comment/Reply (w/o sign-up)