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...
in reply to Re^4: CGI::Session "cache" issue
in thread CGI::Session "cache" issue
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