I'm currently building a site with an integrated Zen Cart store. The homepage has to be separate from the store, so I've installed Zen Cart in a subdirectory called 'shop/'
I need to add a login/logout button on the homepage which links to Zen Cart. The link part works fine, the problem is detecting if the user is logged in or not, so I can display the relevant button.
I assumed I could just check the session to determine this, but it appears to be easier said than done.
I've had a look at Zen Carts session code, but like most things Zen, it's massively complicated and spread across countless files.
I imagine it's just a matter of telling the server which session I want. Any ideas to how I could accomplish this?
Bookmarks