How to manage user session in Perl CGI web application? Is there any way other than cookies, hidden fields. Is there any possibility?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Choose a Perl web framework that you like and use its session plugin. Most of the frameworks have some way to handle this for you. There are ways other than cookies, but they’re fairly ugly and sometimes sneaky.
If you don’t like that, there’s plenty of documentation and examples waiting for you to read after you click-through on your Google search. The topic is rather large and could probably fill a small book. Since you’re question is very broad, you’re unlikely to get help on Stackoverflow.
You can also search CPAN for modules with Session in the name. For web frameworks, you might consider Mojolicious, Dancer, Catalyst, and others. Their documentation will lead you to their session handling features.