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

Ok, sorry about this. Fixed. My first time posting here so wasn't aware of this. Will do so in the future, thanks!
  • Comment on Re^2: Setting session attribute isSecure

Replies are listed 'Best First'.
Re^3: Setting session attribute isSecure
by Sjottil (Initiate) on Jan 08, 2016 at 13:27 UTC
    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?

      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.