Keep It Simple, Stupid | |
PerlMonks |
Re: More on Web Application Frameworksby Ryszard (Priest) |
on Apr 09, 2002 at 03:41 UTC ( [id://157649]=note: print w/replies, xml ) | Need Help?? |
I've done some similar stuff and my preference is:
I wrote my own session management, user management and access control becuase: As a side (read personal) project I'm developing a web portal. Thus far it has an address book, date book, and an mp3 playlist manager. I'm also working on a photo album function, which will slot into the application framework with virtually no effort. The way I've structured the application is to have one CGI::Application application per concept, all in seperate directories. So I've got a directory containing the application for the address, date, and playlist functions. They are all tied together with session management and access control, ie each time a user fetches a page, the function that returns the page will check their session and whether they can access the function and branch accordingly. The access control is pretty handy as you can have an arbitrary level of granularity, and displays only menu functions the user has access to. My own session managemnt handles the authentication to a Postgres database, altho' I've only implemented a cookie based approach (and the key will last the length of the session (ie until it times out or the user logs out)). Doing your own session management is pretty damn easy to do well, altho' I'm sure you know what they say about the tried and the true. As the session management is my own module creation, It's really easy to modify (ie reissue a new key each view) without changing the upper "business" functionality. My form validation, ie taint checking, validity checking is done internally to each function (or method call) as i find when i'm doing form stuff its pretty specific to the function (or method). View management is handled via "run modes" in the CGI::Application framework. I found when I 1st started my project I was a bit bam-boozled by the endless possibilites etc etc, and quickly settled on this combo becuase its just so damn easy to use. Its just not rocket science. Good luck with the project, I'd be interested to hear what application framework you settle for, and why. Why use CGI::Application?
In Section
Seekers of Perl Wisdom
|
|