I am new to wordpress. In few plugin’s code, some of the setcookie() functions has HTTPOnly and Secure flag already SET and some of the setcookie() functions are without HTTPOnly or secure flag in a code.
How can I set all setcookie() functions with HTTPonly and Secure flag, No matter HTTPOnly or Secure flag is set or not.
If I apply code for setting above flags to TRUE either in .htaccess, or use ini_set() in index.php or changes in Apache configuration, Will this affect my existing WordPress working?
Or anyone has better solution?