How to get session variable value in woocommerce?

WC()->session->get(‘myvar’);