in reply to Re^2: Apache2 Mod_perl 2 without a endless loop of redirect
in thread Apache2 Mod_perl 2 without a endless loop of redirect
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Apache2 Mod_perl 2 without a endless loop of redirect
by overworked (Novice) on Apr 28, 2008 at 02:35 UTC |