in reply to CGI: Nodes vs State Machine
It looks to me like you are confusing the sort of state machine support that CGI::Application gives with application-wide authentication and user tracking. That stuff is typically done through the use of some session tracking mechanism (like Apache::Session or similar), and you will need all requests to be processed by a particular piece of code to make it happen.
mod_perl provides hooks to add your own modules in at the auth and access stages of Apache, but you can do this anywhere. If you use CGI::Application, you can do it in the cgiapp_init() method. Just write some shared module that loads the current session and checks the user's authorization to view this page, and call this module from cgiapp_init(). You could do the same from vanilla CGI.
You could also use a framework like OpenInteract which already has the user tracking and auth stuff built in.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: CGI: Nodes vs State Machine
by Masem (Monsignor) on Jan 16, 2002 at 03:15 UTC | |
by perrin (Chancellor) on Jan 16, 2002 at 04:04 UTC |