Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: Structuring multiple CGI::Application modules II

by dragonchild (Archbishop)
on Jun 29, 2004 at 02:30 UTC ( #370392=note: print w/replies, xml ) Need Help??

in reply to Re^2: Structuring multiple CGI::Application modules II
in thread Structuring multiple CGI::Application modules II

The redirect can also be external. Just issue a 302 to the appropriate controller CGI script. Remember - C::A is just a fancy way of handling multiple requests in the same CGI script. If you read the rest of my replies in Why CGI::Application?, you'll see that I had some 4-5 different CGI scripts, each handling a different type of content, with a master script handling login functionality. So, do something like:
  1. Go to the login runmode.
  2. User enters credentials.
  3. The validate function does "The Right Thing"(tm). (Probably determined by a CGI parameter.)
  4. It then issues a 302 to the appropriate content-handling CGI script. This would be determined by a CGI parameter.

We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

  • Comment on Re^3: Structuring multiple CGI::Application modules II

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://370392]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2023-11-28 12:45 GMT
Find Nodes?
    Voting Booth?

    No recent polls found