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

Some additional information that I forgot to mention in the original post: The session cookie is set with CGI::Session not with CGI::Cookie. I can't seem to find anywhere in the documentation on how to set the session's secure flag to true. Is this possible?
  • Comment on Re^3: Setting session attribute isSecure

Replies are listed 'Best First'.
Re^4: Setting session attribute isSecure
by Corion (Patriarch) on Jan 08, 2016 at 14:13 UTC

    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.