in reply to Cookie & Session type problem...

There's little I could guess without the code.
But have you tried to use CGI::Session?
There's a good tutorial called CGI::Session::Tutorial that could get you where you want.

Cheers, Sören