http://qs321.pair.com?node_id=503620

Q&A > CGI programming > How can I authenticate HTTP sessions? - Answer contributed by mezhaka

here's a solution based on CGI::Session module