in reply to Re: Cookie problemin thread Cookie problem
Variables don't interpolate in single quotes:
This code quotes a lot of variables unnecessarily; but this is definitely a bug. Also, you're recreating the $query object; I'm not sure if that'll wipe out any cookies, but it's definitely unnecessary.