• Hi
    I want to change the WordPress cookie name for logged-in users but don’t know which file needs to be edited for the same. Pls help me

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, deepk21, the cookie name is LOGGED_IN_COOKIE, seen in the WordPress/wp-includes/default-constants.php file.

    It’s currently declared like so:

    if ( ! defined( 'LOGGED_IN_COOKIE' ) ) {
    		define( 'LOGGED_IN_COOKIE', 'wordpress_logged_in_' . COOKIEHASH );
    	}
    Thread Starter deepk21

    (@deepk21)

    Thanks Ian, I got the cookie but the same cookie is used for admin as well as for non-admin logged in user. As I am trying to exclude the cache for admin it is also excluded non- admin logged in users. Do I need to define any other cookie for non-admin logged in users?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Change wordpress cookie name’ is closed to new replies.