HttpOnly Flag

[ad_1]

As of release 4.1 which just went out today, we’ve added a filter for anyone wanting to alter the cookie settings. Here’s an example of how to do this – just by adding this snippet to your functions.php file.

add_filter('mailchimp_cookie_data', function($data) {
$data['options']['httponly'] = true;
return $data;
});

The filter is provided with a name of the cookie and the options are the options needs to be returned to the setcookie function. For this example, it will set the httponly to true as you needed. Hope this helps!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer