in reply to accesing session variable values

Hi adi123,

I recently ran into this problem when using CGI::Session while doing a redirect. My solution was to set the cookie before doing the redirect. Apparently, the redirect is happening before CGI::Session is able to set the cookie. Here's the snippet of code that sets the cookie (btw, I'm using CGI::Application so YMMV):

my $cookie = new CGI::Cookie(-name=>'CGISESSID', -value=>$session->i +d); $self->header_props(-url => $new_url, -cookie => $cookie); $self->header_type('redirect');

HTH,
William