There is no single function within the library to do this for you, but I'm sure you could use a combination of the functions available to write your own.
When you say session, can you elaborate exactly what you mean?
What happens when the user completes an order? Can they start another cart?
What if the user clears their browsers cookies?
What if the user uses another browser?
There are many scenarios that would affect how this functions.