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

#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to