I\'m running Apache 2.2.26:
Server version: Apache/2.2.26 (Unix) Server built: Jan 17 2014 12:24:49 Cpanel::Easy::Apache v3.22.30 rev9999 +cloudlinux >
Server version: Apache/2.2.26 (Unix) Server built: Jan 17 2014 12:24:49 Cpanel::Easy::Apache v3.22.30 rev9999 +cloudlinux
This will add the tag to only those cookies that need it:
Header always edit Set-Cookie "^((?!;\s?[Ss]ecure).)+$" "$0; Secure"