How to eliminate "missing attributes from SSL cookie encryption?

How to eliminate "missing attributes from SSL cookie encryption?

If in your server response there is no secure flag, use this iRule:

when HTTP_RESPONSE {
  foreach mycookie [HTTP::cookie names] {
   HTTP::cookie secure $mycookie enable
  }
}