Please do not roll this yourself. It is extremely broken. The whole reason mod_perl is fast is persistence. You have a non persistent DB connection which is just totally wrong. Connecting to a database is slow. In mod_perl you connect once, use lots (and handle unexpected disconnections). Compiling scripts is slow. In mod_perl you don't use anything in cgi-bin. You need proper session control. Saying you want to build it broken and fix it later is just plain stupid.
Lot's of people have spent lots of time on this task. Please use 1 of the many session control modules to do your sessioning properly. Please use one of the persistent database connection modules ie Apache2::DBI to handle this. Please use CPAN!!!!! Do it right the first time.
Have a read of this to get an idea of some basic design concepts. Have a look at this and this online mod_perl book and the sample chapter on authentication available free online out of The mod_perl Developer's cookbook
| [reply] |
Hello Tachyon-II,
I would like to thank you for taking the time in this matter. I will also take your advice about persistent and non-persistent matters. The session control is something I been pushing for a while, unfortunately I’m not a leading manager nor do my suggestions make it far since most of my suggestions are not marketable or doesn’t make the company money. I do what I’m told at best I try to squeak in things but making this area completely session based is something that will not be under the radar.
I love doing things as best as they can base on the tech. and specs given (time allowed); I’m a firm believer of not redoing things because we always took the shortcuts to get it done.
Well again I would like to thank you all for your assistance and time.
Cheers,
overworked
| [reply] |