I've been going over my project notes for the type of outsourcing I do.
After everything's done & said, I notice the following general pattern, regardless of the exact type of work to be done :
- Log in
- Determine type of request
- (1 to n) pages of options
- Review transaction
- Log transaction
- Produce 'reciept' of transaction
and in fact, that's general enough to describe most web transactions.
However, I note that most (all?) that I've seen will implement this in one giant script. I'm curious to people's opinions about modularizing these steps, so that
you have a (e.g.)
login.pl script, that when a user logs on successfully, calls
get_request.pl that calls
request_one_options.pl, etc, with appropriate parameters inbetween each script.
I realize that security would be an immediate concern. It seems like a session server would be the best (most secure) way to prevent people from faking requests -- login.pl would instantiate a session, and then each successive script checks the params it's passed against the session, and responds appropriately if the session information doesn't match the params.
Is this too insecure? Is this Just A Bad Idea?