Hi, Steve,

I'm still wrestling with this login problem from last week -- again,
really.

I'm writing a reporting application, and have a login script that uses
a class that I wrote to auth against a database -- fine.  That works.
Eeeeee-Z!

I also have my report cgi which contains the (redirect) code that you
specify in cgiqpp_init (below...don't know why i quoted your own
code...)

Seems like I'm authenticating with the login script just fine, but if
I don't have a cookie set by thelogin script (i.e., I want to have the
script redirect to the login script) and I request a script that is
dependant on the login cookie, I fail init_session in that
script...using the code on your home page:

 $self->param( 'session_dir' => '/dir/to/save/session/files' );
        unless ( $self->init_session( 'name_of_cookie' ) )
        {
            $self->header_type('redirect');
            $self->header_props( -location => 'http://location/of/login.cgi' );
            return;
        }

But I don't get redirected!!!  I go into setup() where I attempt to
use $self->session('user') to create a user object for the rest of my
script, and summarily die (or kill myself, really) due to lack of the
$self->session('user') which is set in the cookie-baking process.

Any ideas on why it's not redirecting.  I had it working before, but
that was many many undo's ago.

-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