in reply to Re^3: Setting session attribute isSecure
in thread Setting session attribute isSecure

Looking at CGI::Session, you're most likely using $session->header. This is supposedly mostly similar to

$cookie = CGI::Cookie->new(-name=>$session->name, -value=>$session +->id); print $cgi->header(-cookie=>$cookie, @_);

So you should be able to replace the usage of ->header by the above two lines, with the appropriate secure=1 flag added.