What are some examples of websites that effectively use cookies for user preferences, similar to the "Remember me" functionality?

Many websites use cookies to remember user preferences, such as the "Remember me" functionality that keeps users logged in even after they close the browser. This can be achieved by storing a unique identifier in a cookie on the user's device and checking it against a database on subsequent visits to automatically log the user in.

// Set a cookie with a unique identifier
$unique_id = uniqid();
setcookie('remember_me', $unique_id, time() + (86400 * 30), '/'); // Cookie expires in 30 days

// Check if the cookie exists and log the user in
if(isset($_COOKIE['remember_me'])){
    $unique_id = $_COOKIE['remember_me'];
    // Query database to find user with matching unique identifier
    // Log the user in if found
}