I'm trying to write a simple shopping cart Orchard module that will store items in session state and then read them out when the user wants to check out. It needs to work for anonymous users.
I've downloaded the Jumpstart module but have not been able to find any way to get access to the session in the handler or the driver.
Any help would be great.
Simply inject IHttpContextAccessor into the constructor of your driver or handler. Then you can call accessor.Current() and get access to the Session
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With