I want to get session_key for table wp_woocommerce_sessions for current user
I want to get session_key from table wp_woocommerce_sessions for current user. Whether he is logged in or whether he is not logged in.
I am able to easily get session_key for logged in users a his current user ID. But how do I get session_key for not logged in users. WordPress uses some hash for that instead of ID. Can anyone help?
Below is the image of table fields I am talking.