rlucas has asked for the wisdom of the Perl Monks concerning the following question:
For example:
What the programmer should do is make sure that as the last part of each request, the CGI::Session object is flushed and closed. However, 1. anomalous things happen that can sometimes prevent normal cleanup / teardown in applications, and 2. really long request times (think major db calls) might result in a second request before the first one is done and cleanup run. Plus, programmers are Lazy.
So, what I believe would help this is to be able to override the DESTROY method for existing objects without changing the source -- essentially, prevent them from running DESTROY, so that they don't flush to disk without my explicit approval.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Judiciously avoiding DESTROY method for CGI::Session clobber prevention
by jasonk (Parson) on Jun 07, 2005 at 21:35 UTC | |
by rlucas (Scribe) on Jun 08, 2005 at 21:32 UTC | |
by ysth (Canon) on Aug 02, 2006 at 20:06 UTC | |
|
Re: Judiciously avoiding DESTROY method for CGI::Session clobber prevention
by perrin (Chancellor) on Jun 08, 2005 at 01:58 UTC | |
by rlucas (Scribe) on Jun 08, 2005 at 21:44 UTC | |
by perrin (Chancellor) on Jun 08, 2005 at 21:59 UTC |