How to get session ID of the product?

On the page "Shopping cart" receive session items in the cart request:

$cart = WC()->session->get( 'cart', null );

Get the list data of all products in the basket:

array(2) { ["c6ea20f4f2db4fdc4578906a64721348"]=> array(13) {
["is_deposit"]=> bool(true)
["payment_plan"]=> int(1)
["product_id"]=> int(10633)
["variation_id"]=> int(0)
["variation"]=> array(0) { }
["quantity"]=> int(1)
["deposit_amount"]=> string(1) "0"
["full_amount"]=> int(700)
["line_total"]=> int(0)
["line_tax"]=> float(0)
["line_subtotal"]=> int(0)
["line_subtotal_tax"]=> float(0)
["line_tax_data"]=> array(2) {
["total"]=> array(1) {
[1]=> float(0)
}
["subtotal"]=> array(1) { [1]=> float(0) } } }
["4706d250811ba7663a8f6f7849a4bfbd"]=> array(13) {
["is_deposit"]=> bool(true)
["payment_plan"]=> int(2)
["product_id"]=> int(9540)
["variation_id"]=> int(0)
["variation"]=> array(0) { }
["quantity"]=> int(1)
["deposit_amount"]=> string(1) "0"
["full_amount"]=> int(500)
["line_total"]=> int(0)
["line_tax"]=> float(0)
["line_subtotal"]=> int(0)
["line_subtotal_tax"]=> float(0)
["line_tax_data"]=> array(2) {
["total"]=> array(1) {
[1]=> float(0)
}
["subtotal"]=> array(1) { [1]=> float(0) } } }

Question:
How do I get the key (example: ["c6ea20f4f2db4fdc4578906a64721348"]=> array(13) ) session specific to a particular product,
that is, I need to have each product displayed, only its data.

For what?
I need to get one of the values related to the product and change it.
June 26th 19 at 14:12
1 answer
June 26th 19 at 14:14
array_keys()

And you will not hurt you to read something about sessions. Judging by the phrases such as "session related to the goods" it seems that you don't quite know what it is, how it works and why.
I understand, but be sure to read. Thanks for the reply! - rolando.Moore commented on June 26th 19 at 14:17

Find more questions by tags WooCommerceWordPress