You can try to change it with

    define( 'TEST_COOKIE', 'toheloko_test_cookie' );

or

    const TEST_COOKIE = 'toheloko_test_cookie';

inside your `wp-config.php` file.

By default we have:

    define('TEST_COOKIE', 'wordpress_test_cookie');

in `/wp-includes/default-constants.php`.

Check out the [`wp_cookie_constants()`][1] and [`ms_cookie_constants()`][2] functions.

But I also wonder, as @PieterGoosen, why you need to change it.


  [1]: https://developer.wordpress.org/reference/functions/wp_cookie_constants/
  [2]: https://developer.wordpress.org/reference/functions/ms_cookie_constants/