in reply to
There's a wealth of information on PM about creating sessions so your first stop here should be Super Search :). However, while searching for sessions and the various aspects that go along with sessions (like cookies), you might also look for web or cgi frameworks. Though they might take a while to learn and get used to they can save a ton of work in the long run (merlyn wrote a great article about these). My favorites web frameworks avaliable are CGI::Application and catalyst btw.