A_Tame_Lion
04-04-2011, 07:49 AM
Hi Folks,
I'm having some problems storing and accessing data with CGI::session. I am trying to store a value called service_id submitted in a html form in the session.
my $serviceid = $query->param('service_id');
$session->param('service_id', $serviceid);
Then access the $serviceid variable in another script/page:
my $service_id = $session->param('serviceid');
my $serviceDB = ($CSSlogin::sstr . $service_id);
Can't see exactly what I am doing wrong, everything else with session seems to be working ok, anyone have any clues on what I am doing wrong here?
TIA
I'm having some problems storing and accessing data with CGI::session. I am trying to store a value called service_id submitted in a html form in the session.
my $serviceid = $query->param('service_id');
$session->param('service_id', $serviceid);
Then access the $serviceid variable in another script/page:
my $service_id = $session->param('serviceid');
my $serviceDB = ($CSSlogin::sstr . $service_id);
Can't see exactly what I am doing wrong, everything else with session seems to be working ok, anyone have any clues on what I am doing wrong here?
TIA