in reply to cgi cookie failure

Is the $expires variable being set? (it's not in the supplied snippet).