cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to get session data from Plugin

Not able to get session data from Plugin

I have an after plugin for Magento\Framework\Controller\ResultInterface -- afterRenderResult(). In it, I'm trying to get data from Magento\Customer\Model\Session, but I haven't been able to return any data here that I've set in the session elsewhere. Any ideas?

(Side note: I was originally doing this in an observer, but it wasn't reliably working due to caching. Hitting a wall here, so any thoughts would be greatly appreciated!)