Subject: | DBI_sessionmodule tie prevents non-mod_perl scripts access |
The module ties %session to the Apache2::Session to verify that it
exists, and if not sends you to the login page. Then stores the %session
in $r->pnotes( WhatEver ). However pnotes is not accessible from
standard CGI programs. I suggest simply untieing the session after
verification and leaving connectivity to the session as an exercise for
the application author and not as part of the module.
The only other way I can think of to do this would be with another
config var that specifies mod_perl/non-mod_perl and that changes the way
the module ties to and stores the %session.
I think it is just easier for the maintainer to simply untie.
In my version of the module I simply did this (commented out the pnotes
line and added removed the tie):
#$r->pnotes( $auth_name, \%session );
undef $tie_result;
untie(%session);