Disable woocommerce cookies and delete cart data automatically

Your code is expiring the session after 24 hours. You need to change your return value to reflect the number of hours (commented in the example below):

add_filter('wc_session_expiring', 'so_26545001_filter_session_expiring' );

function so_26545001_filter_session_expiring($seconds) {
    return 60 * 60 * 1; // Change "1" to the number of hours: 1 for 1 hour, 4 for 4 hours, etc.
}

add_filter('wc_session_expiration', 'so_26545001_filter_session_expired' );

function so_26545001_filter_session_expired($seconds) {
    return 60 * 60 * 1; // Change "1" to the number of hours: 1 for 1 hour, 4 for 4 hours, etc.
}