[cgiapp] Double session use for CAP::Session

Brad Cathey breadwild at gmail.com
Wed Mar 18 10:41:57 EDT 2009


Hello,

During log-in to an "umbrella" admin screen I'm creating a session in  
an old legacy module using straight CGI::Session.

There is a link on that screen that takes them to a second admin  
screen written in CGI::Application and sets a second session to track  
a different set of user tasks.

I want to check a login param from the first session to make sure they  
have logged into the original admin screen.

[Login] -> set session 1 -> [Main admin] -> set session 2 -> check  
login from session 1 -> [Sub admin]

I would like to check it using CAP syntax, a la something like:

$self->session->new('CGISESSID');
if ( !$self->session->param('logged_in') ) {

I can't get that to work, so I'm using the less attractive:

CGI::Session->name('CGISESSID');
if ( !$self->session->param('logged_in') ) {

Which does work.

QUESTION: is there anyway to manipulate multiple sessions in  
CAP::Session?

Thanks, Brad


More information about the cgiapp mailing list