in reply to Setting session attribute isSecure

Crossposted to StackOverflow. It's considered polite to inform about crossposting, so that people not visiting both sites don't waste their time hacking a problem already solved at the other end of the internet.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Setting session attribute isSecure
by Sjottil (Initiate) on Jan 07, 2016 at 13:00 UTC
    Ok, sorry about this. Fixed. My first time posting here so wasn't aware of this. Will do so in the future, thanks!
      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.