in reply to Cookies in Perl

One cannot follow this abstract explanation, you left out too many details. Any answer you will get must necessarily include a good deal of speculation.

Show your code, so that we may reproduce the problem.