[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] CA::Plugin::Authentication


Hi all,

I'm really a greenhorn at OOP and using modules so please forgive me if this is a stupid question...

I'm trying to get a handle on using "CA::Plugin::Authentication" and so far I seem to be doing ok, but I'd like to set the name of the cookie that "CA::Plugin::Authentication" uses to something other than CGISESSID. I've tried as many ways as I can think of, and I've reviewed the docs over and over, but I can't seem to find how to do this. Can anyone tell me how?

Here's what I have in my app:

################################################################
package MyApp;

use base 'CGI::Application';
use GetStuff;

use CGI::Application::Plugin::AutoRunmode;
use CGI::Application::Plugin::Session;
use CGI::Application::Plugin::Authentication;


  __PACKAGE__->authen->config(
        DRIVER => [ 'Generic', \&check_password ],
        STORE => 'Session',
        LOGOUT_RUNMODE => 'logout');

  __PACKAGE__->authen->protected_runmodes(qw(start
  									   home_screen
  									   contacts_screen
  									   reports_screen));

sub cgiapp_init {
     my $self = shift;
	$self->session_cookie(-expires => '+1m',
		                 -name=>'CGISESSID');
  }

sub setup {
     my $self = shift;

     $self->tmpl_path('/path/to/my/templates/');
     $self->start_mode('start');

     $self->run_modes(
     	 "AUTOLOAD"        => \&error_trap,
     	 'start'           => 'start',
          'home_screen'     => 'home_screen',
          'contacts_screen' => 'contacts_screen',
          'reports_screen'  => 'reports_screen'
      );
}
################################################################

But I'd like to set the name of the cookie that "CA::Plugin::Authentication" uses to something other than CGISESSID. Can anyone tell me how to do that?

Kindest Regards,

--
Bill Stephenson
417-546-8390


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.