I am using a third-party payment service and have confirmed that the member is already logged in. However, when redirected to the thank you page, the login prompt still appears. Previously, this issue did not occur as frequently, but now it requires logging out and logging back in every few minutes to display correctly.
WooCommerce:9.1.1
WordPress:6.5.5
PHP Version:7.4
Q:We are unsure if recent updates have affected the rules for Session or Cookies, but such anomalies were less frequent before.
A similar issue has occurred again:https://projectdmc.org/support/topic/woocommerce-order-received-chrome-asks-for-login/
Code Path:woocommerce/includes/shortcode/class-wc-shortcode-checkout.php
// For non-guest orders, require the user to be logged in before showing this page.
if ( $order_customer_id && get_current_user_id() !== $order_customer_id ) {
wc_get_template( 'checkout/order-received.php', array( 'order' => false ) );
wc_print_notice( esc_html__( 'Please log in to your account to view this order.', 'woocommerce' ), 'notice' );
woocommerce_login_form( array( 'redirect' => $order->get_checkout_order_received_url() ) );
return;
}


WooCommerce is set to require customers to be logged in to place orders!
