.. find on google ...
see catalyst, dancer, mojo, titanium, cgi::application to build your own system using existing wheels
How do you come to the conclusion that this code doesn't run?
I tried to run it, it wouldn't run :) It may run on your system, it doesn't run on mine, or anyone elses. The code as posted isn't self contained, if I download it, I can't run it to figure out all the problems.
From just reading the code and running it in my mind there is nothing obvious ... other than a stab in the dark (like this guy says, and like the links I linked talk about), that the cookies aren't being sent or accepted -- no cookie means no session