I am having the same problem hoping a bump with more info will help get an answer. My site is setup so that the zen-cart is secondary to primary site(i.e. you connect to primary site and there is an option to connect to store which is a sub directory of public_html. Since Zen-cart already has login/account creation/sql db I want to be able to use those credentials for the site globally where login/registration is needed to see protected areas. as a test I have the following code in the main page:
<div id="Loginhere">
<p>Welcome <?php if (isset($_SESSION['customer_id']) and $_SESSION['customer_id'] != '') {echo $_SESSION['customer_id']; } else { echo 'Guest'; }?></p>
<p> <a href="https://mysite.com/zen-cart/index.php?main_page=login">Registration/Login</a> </p>
</div>
What happens is new user clicks the link gets redirected to the zen login/account creation page and all is good. Now comes the problem. Navigate back to the main page and as far as it is concerned the user is still a Guest. If I click the Registration/Login it will take me back to the zen cart page and happily identify me as the previously registered user. (i.e. the session variables are still valid)
It's as if the zen-cart area of the site is a seperate "namespace" so to speak and the rest of the site has no clue about the session data.
I don't want to embed the rest of my site within Zen-cart as that makes no sense for what it's about. The store is a sub component NOT the site focus.
Any help would be greatly appreciated
:lamo: