Hello again,
I'm trying to understand exactly what postrun allows me to do.
I would like to have it set a new session (via C:P:A:Session) before the
script outputs my .tmpl page. This code produces an error:
Error executing class callback in postrun stage: Can't call method
'session' on an
Thanks Michael. It worked and I learned something. Not sure I understand it
fully, but the light went on. I need to have a better understanding of OO.
Objects, instances, methods are still a mystery to me. It's kinda like
knowing how to drive, but not knowing how an internal combustion engine
Brad Cathey wrote:
Thanks Michael. It worked and I learned something. Not sure I understand it
fully, but the light went on. I need to have a better understanding of OO.
Objects, instances, methods are still a mystery to me. It's kinda like
knowing how to drive, but not knowing how an
Note: My version of File::Temp (0.14) for Perl 5.8.6 uses tmpdir(),
not curdir(). You might want to upgrade File::Temp before doing
anything drastic.
I'm running File::Temp 0.16 and it appear to use curdir.. Which line
of code are you refering to ?
I jsut read the changelog for this module
Here is the patch
change line 616 to this
my ($tmp_fh, $tmp_filename) = tempfile('CGIuploaderX', UNLINK
= 1, DIR = File::Spec-tmpdir());
:)
I'll make a real patch for the mime stuff.
Jeff.
On 12/16/05, Jeff MacDonald [EMAIL PROTECTED] wrote:
Note: My version of File::Temp (0.14) for
Actually I just read the wishlist, i'll make it an option and work on the tests
might as well do it right
On 12/16/05, Jeff MacDonald [EMAIL PROTECTED] wrote:
Here is the patch
change line 616 to this
my ($tmp_fh, $tmp_filename) = tempfile('CGIuploaderX', UNLINK
= 1, DIR =
On 2005-12-16, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
2) why do coders preface 'logged-in' with a tilde, e.g., '~logged-in'?
What's wrong with 'logged-in'?
I wouldn't say that coders prefer the tilde. I think it is visual noise,
like the extra dashes in the CGI.pm interface:
Seems like I have spent more time on C::A::P::Session than all the other
plugins combined--and I just can't get it to work. It is setting a session
in cgiapp_postrun after logging in for the first time (it is also setting
a cookie very nicely). This is evidenced by the line: 'logged_in: 1 in my
I'm using older versions, C::A::P::Session v. 0.07 and CGI::Session 3.95.
And I store the sessions in MySQL (connect using C::A::P::DBH), but the
following code may help you anyway:
# CGI::Application::Plugin::Session - configure the session
sub init_session {
my $self = shift;