I want to get session_key for table wp_woocommerce_sessions for current user

Question

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.

Thanks
enter image description here

0
Anmol Kumar 4 months 0 Answers 16 views 0

Leave an answer