I'm assured by a friend who used to work at Netscape that Netscape
Enterprise Server 4.1 is a great piece of software that runs and
runs.  I'm having all kinds of weird problems with it, including the
fact that it's not setting cookies as (I think) it should.

Here's a CGI::Application::Session-based CGI that is failing to set
cookies at any point when run under Netscape on Solaris, but works
wonderfully on Linux/Apache.  This is essentially the sample
userlogin.cgi that Steve includes on his page of stuff about his
Session and Login modules.  There are a few minor differences,
including the use of CGI::Carp and the redirection of STDERR (req. for
Netscape to view STDERR).

Does anyone have any idea why cookies would not be being set using
Netscape in this case?  

Environment: 
CGI::Application 2.1 
Perl 5.6.1
Netscape Enterprise server

I've debugged to the point that I can see the cookie being fed to
CGI::App::header_props(), and the cookie is valid, but no cookies. ;<

Thanks.  Any help would be appreciated.


#!/usr/bin/perl
use strict;
use CGI::Carp qw(fatalsToBrowser);

BEGIN {push(@INC, "..");}
close(STDERR); open(STDERR, ">> /tmp/stderr.log");

# create new instance of web application
use MyProject::UserLogin;
my $webapp = MyProject::UserLogin->new(
                PARAMS => {
                           'login_template' => 'userlogin.tmpl',
                           'session_dir'         => '/tmp/sessions',
                           'cookie_name'         => 'login_test',
                          });
$webapp->run();


-Eric.

-- 
Eric D. Berg <[EMAIL PROTECTED]>
Web Development / Solaris-Linux / Perl / SQL
http://nylug.org/~eberg
Tel. 646-418-3608

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to