I have the job of joining a non-Zen Cart site as seamlessly as possible to a Zen Cart store, and one of the things I need to do is find out what the current logged-in and cart state is for the user, even when they're not in the Zen Cart part of the site.

I want to bring in as few includes as possible, but short of completely rebuilding the non-ZC part of the site with all the ZC headers, is there a way I can find out whether a user has logged in and/or has items in their cart, even when they're not in the ZC directories?

Thanks in advance.