Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: CGI::Application redirecting from one handler to another.

by jeffa (Bishop)
on Jan 02, 2004 at 12:22 UTC ( [id://318357]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to CGI::Application redirecting from one handler to another.

I feel that this task is one that should not be seperated into two "handlers". You can always take care of abstraction by writing two "utility" methods/functions that verify and create respectively, but the task of "logging in" is better handled in one handler, IMHO.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
  • Comment on Re: CGI::Application redirecting from one handler to another.

Replies are listed 'Best First'.
Re: Re: CGI::Application redirecting from one handler to another.
by skx (Parson) on Jan 02, 2004 at 12:49 UTC

    This code is related to the creation of accounts rather than logging in - obviously a user cannot login until their account has been created!

    Still I think that perhaps you're correct and that instead of having two handlers I should just keep one long one. It just seemed right to make it a two step affair as conceptually it is.

    I guess that's just an implementation detail though and it would solve my problems.

    Steve
    ---
    steve.org.uk

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://318357]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.