in reply to Re^7: RFC: Proposed tutorial - simple login script using CGI::Application
in thread RFC: Proposed tutorial - simple login script using CGI::Application
It's important that all your pages be CGI::Application 'runmodes', and if you think about it in object-oriented programming terms, all of your runmodes should be methods of objects derived from some abstract base class that is itself derived from CGI::Application. Your base class contains the login logic. That way all derived classes inherit that functionality. If you redirect to some random CGI script that isn't derived from that base class, then you're right - you just bypassed your login logic. Fortunately, all you probably need to do is add:
to your vpage.cgi script.use base 'MyLib::Login';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^9: RFC: Proposed tutorial - simple login script using CGI::Application
by Anonymous Monk on Jan 21, 2016 at 19:16 UTC | |
by Anonymous Monk on Jan 22, 2016 at 07:29 UTC | |
by scorpio17 (Canon) on Jan 22, 2016 at 16:08 UTC | |
by Anonymous Monk on Jan 25, 2016 at 09:50 UTC | |
by Corion (Patriarch) on Jan 25, 2016 at 10:25 UTC | |
|
In Section
Meditations