I don't think there's a way to do that. Even if you excluded the session ID, that wouldn't exclude the sessions themselves from being cached, therein the problem.
What you really want to do (I think) is simply make sure that caching doesn't happen on a page where the cart exists. You can do this by adding a DONOTCACHE directive to the cart widget (in addition to excluding the pages you already know to exclude). Of course, if the cart widget is on every page, this means that you won't effectively be able to use the caching plugin at all (why install it if caching is never done).
Another option would be to find out the cookie used for items in cart, and set the directive to DONOTCACHE if the cart is not empty.
Which cart are you using (if I may ask)?
Hope this helps.
MarkStatistics: Posted by markb1439 — March 24th, 2011, 12:00 am
]]>