Actually I am use CAP::Session, and it works fine so long as I display pages via perl script. If I ask for a static page, like HTML, for some reason the cookie is not sent so the browser removes it. It is probably my ignorance of how cookies are supposed to work...