Hi all,

As is Dan Horne (C::A::P::S - new session every call) I'm upgrading some
code, but I'm new to C::A. I haven't yet used HtmlTemplate or TT. At the
moment I'd like to avoid it, if possible? In cgiapp_init I have this:

my $sid = $query->cookie('CGISESSID') || undef;my $session = new CGI::Session("driver:File", $sid, {Directory=>'/tmp'});

$self->param('session'=>$session);

if (!$sid or $sid ne $session->id) {

my $cookie = $query->cookie(-name => 'CGISESSID',

-value => $session->id,

-expires => '+1d');

$self->header_props(-cookie=>$cookie);

# print $query->header(-cookie=>$cookie);

}


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



Reply via email to