|
|
| more useful options | |
| PerlMonks |
Re^5: CGI::Session "cache" issueby Anonymous Monk |
| on May 23, 2011 at 23:29 UTC ( #906381=note: print w/ replies, xml ) | Need Help?? |
|
This has though confused me entirely. How was it possible that I was even able to login, if I hadn't set the cookie on redirect. And why... Your confusion is understandable. Your code is very repetitive; there is zero abstraction. This makes maintenance (finding bugs ) very difficult, if not impossible. The code is in need of refactoring. What do I mean? See String Calculator TDD Kata done in Perl, its a ~14 minute video of an exercise in refactoring, live, as the programmer types it in. Then see a 7minut Introduction to Catalyst , for an easier approach to writing complex CGIs using http://www.catalystframework.org/
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||