Zen Cart Logo
Forums / General Questions / Login and Logout Issues

Login and Logout Issues

Locked

Views: 748

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
2 Jun 2010, 3:30 PM
#1
youngblood avatar

youngblood

New Zenner

Join Date:
Apr 2010
Posts:
59
Plugin Contributions:
0

Login and Logout Issues

Sometimes when viewing pages on my company's website, we get logged out when clicking certain links or buttons.

For instance, if someone were to click Continue Shopping from their shopping cart, it would send them back to our home index (which is fine) but it would also log them out at the same time. This is where the problem lies.

This also occurs when some products are clicked directly from our drop-down navigation. Any ideas?

Thanks again for your time and effort.

Jonah Youngblood
PrimeVapor LLC
http://www.primevapor.com
[email protected]

2 Jun 2010, 3:42 PM
#2
youngblood avatar

youngblood

New Zenner

Join Date:
Apr 2010
Posts:
59
Plugin Contributions:
0

Re: Login and Logout Issues

Update to new errors:

All of the links in the top header of Zen's stock version, like
'Home' ,'Shopping Cart' ,'Checkout' ,'My Account', retain the login throughout the pages. However, whenever someone clicks any other linkage from the website, it logs them out and takes them to that page.

Perhaps that's a bit more exact report.

Thanks again!

2 Jun 2010, 5:20 PM
#3
youngblood avatar

youngblood

New Zenner

Join Date:
Apr 2010
Posts:
59
Plugin Contributions:
0

Re: Login and Logout Issues

Issue Solved -

When on an SSL site, one must ensure that the source destination for the linkage is NOT set to https. Your images will need to be https, but not your referenced link.

So, this is an example of what I had before for my buttons,

<a href="https://www.primevapor.com/index.php?main_page=product_info&cPath=6_14&products_id=23">Flavor of the Month</a>

If you had this in there, it would have sent you to the page but logged you out. If you take the s of https, then it will retain your login throughout the site. I changed all my nav links to this and it now works fine.

Correct Format:
<a href="http://www.primevapor.com/index.php?main_page=product_info&cPath=6_14&products_id=23">Flavor of the Month</a>

2 Jun 2010, 5:21 PM
#4
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: Login and Logout Issues

I can confirm for you that you shouldn't be experiencing this problem.

Once logged into the customer's account, that customer should be able to navigate around Zencart pages without being logged out. This includes using manually entered links in your html such as "go here to see a similar product" type links in your product descriptions. (Be sure to use relative links, not absolute links (eg" /index.php?main_page=product_info&cPath=112_114&products_id=303 and not http://www.mywebsite.com//index.php?main_page=product_info&cPath=112_114&products_id=303).

If the customer arrives by an external link that customer will not be logged in until he/she chooses to log in.

If you have links that take the customer outside the Zencart pages you might consider adding target="_blank" to the href statement so that the link opens in a new window leaving the original Zencart page open. When the customer closes the external page the Zencart page will still be open and logged in.