[cgiapp] A couple of questions

2005-03-16 Thread Peter Fogg
Given this: use base 'CGI::Application'; use CGI::Application::Plugin::DBH (qw/dbh_config dbh/); use CGI::Application::Plugin::Session; use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use HTML::Template; use strict; use warnings; sub cgiapp_init { # Set the path to the templates . . .

[cgiapp] The answers to a couple of questions

2005-03-16 Thread Peter Fogg
Thilo wrote: the CGI::App template path is only used by CGI::App. HTML::Template does not know or care about this at all. If you want the template path to have any effect, you have to let CGI::App create the template for you: my $tmpl_obj = $webapp-load_tmpl('some.tmpl'); Of course! And it

[cgiapp] deleting a session cookie from the browser

2005-03-14 Thread Peter Fogg
Hello all, The code below is supposed to delete the session cookie from the requesting browser; it successfully delete the session record from the table. I am using both the DBH and Session plugins to CGI::Application. . . . my $cgi = $self-query(); my

Re: [cgiapp] deleting a session cookie from the browser

2005-03-14 Thread Peter Fogg
'); # ### . . . On Mar 14, 2005, at 3:37 PM, Peter Fogg wrote: Hello all, The code below is supposed to delete the session cookie from the requesting browser; it successfully delete the session record from the table. I am using both the DBH and Session plugins

Re: [cgiapp] CGI::Application and CGI::Session

2005-03-10 Thread Peter Fogg
On Mar 10, 2005, at 3:12 AM, Sean Davis wrote: On Mar 9, 2005, at 9:52 PM, Peter Fogg wrote: Hello all, This module was written to help me understand the use of CGI::Session with the context of a CGI::Application object. The problem is that when I store the reference to the CGI::Session object

Re: [cgiapp] CGI::Application and CGI::Session

2005-03-10 Thread Peter Fogg
Originally, I tried $self-param('_SESSION',$session);. It didn't work so I tried $self-param('_SESSION', $session-id());, it didn't work either. At your suggestion, I changed back to $self-param('_SESSION',$session); and uncommented the my $session ..., ...delete and ...flush lines of code

Re: [cgiapp] CGI::Application and CGI::Session

2005-03-10 Thread Peter Fogg
On Mar 10, 2005, at 9:10 AM, Sean Davis wrote: You are absolutely right that the session has not been created in sub destroy. However, I ALWAYS call sub create_set before I call sub destroy. My thinking is that if I create the session object in sub create_set and save it in the application

Re: [cgiapp] CGI::Application and CGI::Session

2005-03-10 Thread Peter Fogg
On Mar 10, 2005, at 11:13 AM, Sean Davis wrote: On Mar 10, 2005, at 12:56 PM, Peter Fogg wrote: On Mar 10, 2005, at 9:10 AM, Sean Davis wrote: You are absolutely right that the session has not been created in sub destroy. However, I ALWAYS call sub create_set before I call sub destroy. My

[cgiapp] CGI::Application and CGI::Session

2005-03-09 Thread Peter Fogg
Hello all, This module was written to help me understand the use of CGI::Session with the context of a CGI::Application object. The problem is that when I store the reference to the CGI::Session object that I have created in the CGI::Application object, I cannot retrieve the reference to the