If this is your first visit, check our documentation. To post, register or login.
Forums / Business Issues / Other Business Topics / zenID always present after changing http_server to https://

zenID always present after changing http_server to https://

Started by rixstix on 11 Mar 2017, 6:55 PM · Views: 1,496

Results 21 to 40 of 76
29 Mar 2017, 7:53 PM
#21
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

zenID always present after changing http_server to https://

Forgot to mention, the .htaccess code I provided on first thread page will not hinder your site and will definitely bring it more in-line with what you want. Use all of it though, not just some.

The learning is in the doing.

Potent Products

29 Mar 2017, 8:20 PM
#22
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: zenID always present after changing http_server to https://

RixStix:

Still trying to find the cause

Latest testing shows
Product pages or any other page visited via a link in the template Mega-Menu keeps the zenID until a page is visited via a footer link or sitemap link.
Product pages visited via a sitemap link never show the zenID

ie: From homepage, visit any product, category or customer service page accessible from the Mega-Menu and the zenID appears every time.

Visit the same product, category or customer service page via the sitemap, the zenID is removed if it was present or is never shown if the first page after the homepage is visited via a footer or sitemap link. After this, any page visited via the Mega-Menu no longer has the zenID.

So, my thinking is that the issue is caused by the Westminster_New template and/or Mega-Menu used by the template. Either way, Anne, Pica-fluor Azul, has been noticeably absent from template support threads.

Ideas? I can't do testing using my sandbox sites because they do not have SSL certs.
Couple of "options" come to mind, "in house" you might be able to get/set an openssl certificate for one of your test sites, or depending on other rules in your htaccess, you might be able to install a test site off of your existing ssl-able domain name and perform desired testing. "Outside" if you can identify that none of the template/mega-menu code has been changed, or if it has how it has been changed, then it might be possible to narrow down the cause(s). Further, if you identified settings such as in the includes/configure.php that might be "abnormal" and those for ENABLE_SSL. Now by abnormal I am referring to something like: the HTTP_SERVER and HTTPS_SERVER have more than just the domain name and add to that some variation applied to the DIR_WS_CATALOG beyond a single slash. And then further how the HTTP_CATALOG and/or HTTPS_CATALOG differ from a rule that might be in your htaccess. (if this info is already in this thread in pieces, it could be helpful to centralize it).

As far as absence, most certainly. Of course having the same question asked time and again certainly doesn't encourage continued support, but all that said? I've got a feeling that it is something else entirely, but a shame. ZC could really use someone that will stay with the structure of ZC (meaning compatibility) and offer the visual presentation that so many look for in a website. Unfortunately the majority of sources that are discussed are filled with unimaginable problems/errors, and are not at all suited for new store owners. Would think if there was even a reasonable source that offered low cost alternatives that they would do well...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

29 Mar 2017, 9:12 PM
#23
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

mc12345678:

Couple of "options" come to mind, "in house" you might be able to get/set an openssl certificate for one of your test sites, or depending on other rules in your htaccess, you might be able to install a test site off of your existing ssl-able domain name and perform desired testing. "Outside" if you can identify that none of the template/mega-menu code has been changed, or if it has how it has been changed, then it might be possible to narrow down the cause(s). Further, if you identified settings such as in the includes/configure.php that might be "abnormal" and those for ENABLE_SSL. Now by abnormal I am referring to something like: the HTTP_SERVER and HTTPS_SERVER have more than just the domain name and add to that some variation applied to the DIR_WS_CATALOG beyond a single slash. And then further how the HTTP_CATALOG and/or HTTPS_CATALOG differ from a rule that might be in your htaccess. (if this info is already in this thread in pieces, it could be helpful to centralize it).

I've thought about that for one of the sandbox servers.
I don't trust myself creating a 2nd ZC install on the live server. I did that once in the past and didn't find a problem caused with the live site for a few days and had to manually recreate missing orders. A mistake can take hours to restore. My super fast 1 point 5 megabit connection on a good day makes for a time consuming DB restore process if/when I foul things up. :smile:. I have been known to drive a few miles for a strong enough signal so that I can tether my cellphone to a VerizonWireless 5 megabit 4G connection.
I've looked at the configure.php files to the point where they are wearing thin but it never hurts another review. The only difference is the "S" on httpS:// of the http_server. Though it made no difference ENABLE_SSL is now set to false
Since removing the entire .htaccess file makes no difference, I find it hard to envision anything in .htaccess causing the issue.

I do appreciate everyone's comments and ideas to check.

mc12345678:

As far as absence, most certainly. Of course having the same question asked time and again certainly doesn't encourage continued support, but all that said? I've got a feeling that it is something else entirely, but a shame. ZC could really use someone that will stay with the structure of ZC (meaning compatibility) and offer the visual presentation that so many look for in a website. Unfortunately the majority of sources that are discussed are filled with unimaginable problems/errors, and are not at all suited for new store owners. Would think if there was even a reasonable source that offered low cost alternatives that they would do well...

That, I do understand and fault no one. Things change, personal issues do arise and lack of financial support for shared code all enter into the equation.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

30 Mar 2017, 3:19 PM
#24
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

Website Rob:

Suggest fixing some the HTML code used as a quick code validation check showed more than a few errors. Interesting thing is that there are a lot &amp that are missing a closing ; which is somewhat related to the problem you are experiencing. And if not related, always good to have correct code whenever possible.

DONE. It was a good learning experience but had no affect on the zenID issue.

I am going to hold off on any .htaccess changes since it does not appear that any of the current .htaccess is causing the issue.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

31 Mar 2017, 9:04 PM
#25
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

For the life of me, I can't figure out the difference between how the sitemap generates the category and product URLs for clicking and how the Mega-Menu generates the URLs for clicking. AND then, why the Mega-menu doesn't have a problem with generating the URLs (without the zendID anytime after a Sitemap generated URL is visited.

OK, that might not be the proper terminology, but hopefully what I mean is understood.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

1 Apr 2017, 2:57 AM
#26
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: zenID always present after changing http_server to https://

RixStix:

Mega-menu
You're talking about a plugin, right?
And you've got a URL-rewriter plugin installed too, right?
And is the sitemap you're referring to also yet another plugin?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Apr 2017, 3:44 AM
#27
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

DrByte:

You're talking about a plugin, right?
It is an integral component of many of Pica-Fluor azul's responsive templates, so yes, it is the Westminster_New responsive template plugin

DrByte:

And you've got a URL-rewriter plugin installed too, right?
No, I do not.

DrByte:

And is the sitemap you're referring to also yet another plugin?
Not that I am aware. I thought it was the stock zencart page. I am not referring to the XML sitemap generator plugin that is used by Bing and Google.

/index.php?main_page=categories (is what I am calling the sitemap)

I am not discounting a mistake on my part that decided to show up when I changed the http_server to https

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

2 Apr 2017, 12:14 AM
#28
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

I'm not sure which site is having the problems mentioned in this thread but I have seen regular reference to a MegaMenu. I wanted to point out that ChainWeavers (dot) com is not using a MegaMenu, if that is the site in question, as it is using a Drop-down Menu. Not sure where the confusion comes from as a MegaMenu is easy to spot, and good to use actually. To learn more have a look at this explaination and screenshots of a MegaMenu.

The learning is in the doing.

Potent Products

2 Apr 2017, 12:42 AM
#29
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

OK. Wrong choice of menu description, but doesn't change the issue.

I'm still trying to muddle through on my own to make this a learning experience, but only run into dead ends or frustration at my own inability.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

2 Apr 2017, 1:06 AM
#30
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

RixStix:

I was just toggling things false/true and

Admin
Configuration
Sessions
Force Cookie Use (Change default False to True)

zenID now is removed as expected and the same as when http_server was http://

That in itself tells me nothing other than it seems to work now but is changing that setting (from false to true) going to affect something else up down the road?

I think that is where it coming to.

I know you mentioned "Significant NEGATIVE effect is that Auth.net SIM does not function as expected with the switch set to TRUE." but what about the other settings?

If you use the following:

Session Directory     /home/xxx/public_html/cache      
Cookie Domain                 True
Force Cookie Use                 True
Check SSL Session ID             False
Check User Agent                 False
Check IP Address                 False
Prevent Spider Sessions             False
Recreate Session                 True
IP to Host Conversion Status         false
Use root path for cookie path         False
Add period prefix to cookie domain     True

Other than Auth.net, how do things work?

The learning is in the doing.

Potent Products

2 Apr 2017, 2:35 PM
#31
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

Website Rob:

I think that is where it coming to.

I know you mentioned "Significant NEGATIVE effect is that Auth.net SIM does not function as expected with the switch set to TRUE." but what about the other settings?

If you use the following:

Session Directory /home/xxx/public_html/cache
Cookie Domain True
Force Cookie Use True
Check SSL Session ID False
Check User Agent False
Check IP Address False
Prevent Spider Sessions False
Recreate Session True
IP to Host Conversion Status false
Use root path for cookie path False
Add period prefix to cookie domain True

> 
> Other than Auth.net, how do things work?

Those settings have no effect other than Force Cookie Use.  
Changed one at a time, changed browsers & cleared browser histories between each change.

Setting Force Cookie Use to false eliminates zenID from being present in the URL but causes Auth.net SIM session OOPS when returned to zencart after submitting the Auth.net SIM payment form.  Credit Card payment IS authorized and captured but sale is not recorded in zencart.

Re:  CSS Mega-menu.  That is the term Picafluor-Azul uses to describe the menu used in all her responsive templates and she has also packaged it as a separately available plug-in.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

2 Apr 2017, 5:27 PM
#32
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: zenID always present after changing http_server to https://

RixStix:

Setting Force Cookie Use to false eliminates zenID from being present in the URL

Okay, so, setting Force Cookie Use to:

  • false - should eliminate zenID from the URL on 2nd and future clicks ... ie: after the cookie is set in the background. (If the zenID still shows after that, then your site is having problems doing all the session setup).

  • true - should eliminate the zenID at all times, because it will often force a page refresh in order to force the cookie to get set, even on the first click. The downside is it may also prevent interaction with some 3rd party services. I've also seen reports of it breaking add-to-cart if the "first" page hit is a product page and click add to cart from that page.

Thus, given that your site is operating differently than expected on both counts, it suggests something is amuck with:

  • setting cookies (browser rules, conflicting conflict with existing cookies for the domain, etc)
  • Since it's only happening on SSL, then perhaps SSL isn't being detected properly in order to pass the secure-cookies-only flag
  • whatever "session storage" method is in use isn't working properly; I'm inclined to suggest truncating the sessions table in the db just to clear everything afresh (ideally when few people are online, or only spiders are online)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Apr 2017, 7:05 PM
#33
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

DrByte:

Thus, given that your site is operating differently than expected on both counts, it suggests something is amuck with:

  • setting cookies (browser rules, conflicting conflict with existing cookies for the domain, etc)
  • Since it's only happening on SSL, then perhaps SSL isn't being detected properly in order to pass the secure-cookies-only flag
  • whatever "session storage" method is in use isn't working properly; I'm inclined to suggest truncating the sessions table in the db just to clear everything afresh (ideally when few people are online, or only spiders are online)

TNX for the suggestion DrByte.

I just Truncated sessions table.
Cleared Browser history back to the beginning of time

No difference in functionality. zenID still present in all categories & products when browsed until visiting a page that does not have the zenID appended. From that point on, the zenID is not present.

Refreshing a page that has the zenID, keeps the zenID.
Removing the zenID from the browser addressbar of the page currently viewed then refreshing, no longer has the zenID; nor does any future page.

I agree something is mucked up. Changing a setting to unmuck things is only likely addressing the symptom and not the actual problem.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

2 Apr 2017, 11:57 PM
#34
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

In phpMyAdmin, check all Tables, select Repair.

May or may not help but will clean up the entire database which is good to do every now and then. Should take any database problems out of the equation.

The learning is in the doing.

Potent Products

19 Apr 2017, 3:19 PM
#35
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

Found this thread regarding zenID not removed in ZC 1.5.4 from back in 2015

https://www.zen-cart.com/showthread.php?218756-IE11-Chrome-Sticky-zenid-on-a-store-that-is-https-all-the-time

Post # 4
Made that edit and zenID is removed as expected

Original

function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {

EDITED

function zen_href_link($page = '', $parameters = '', $connection = '[B]SSL[/B]', $add_session_id = [B]false[/B], $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

19 Apr 2017, 5:00 PM
#36
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

Sorry, forgot to put the filename in the previous post

includes/functions/html_output.php

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

19 Apr 2017, 8:27 PM
#37
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: zenID always present after changing http_server to https://

RixStix:

Found this thread regarding zenID not removed in ZC 1.5.4 from back in 2015

https://www.zen-cart.com/showthread.php?218756-IE11-Chrome-Sticky-zenid-on-a-store-that-is-https-all-the-time

Post # 4
Made that edit and zenID is removed as expected

Original

function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {

> 
> EDITED
> ```
function zen_href_link($page = '', $parameters = '', $connection = '[B]SSL[/B]', $add_session_id = [B]false[/B], $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {

That change to $add_session_id might have the same effect as Force Cookie Usage being set to true.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Apr 2017, 9:51 PM
#38
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

TNX mc12345678, lat9 and DrByte,

That change to $add_session_id might have the same effect as Force Cookie Usage being set to true.

Testing Auth.net SIM does not cause the payment issues seen with Force Cookie Usage set to TRUE (at least not yet). The issue was Auth.net authorized and captured the payment but the ZenCart payment confirmation screen never appeared, so CC was charged but no order generated.

Testing PayPal pay without a PP account did not cause payment problems

No myDEBUG log files generated.

All is looking ok for now unless there is something that the suggested code will muck up down the road. I almost didn't read the thread created by lat9 because it seemed to be only related to Internet Explorer. Persistence using MrGoogle with different parameters and following every lead took a while but searching for a previous solution has worked out.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

20 Apr 2017, 3:13 PM
#39
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: zenID always present after changing http_server to https://

For the record, I'm NOT a fan of the proposed changes to zen_href_link.

IMO the original problem you're trying to fix is a server issue, not a Zen Cart issue.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Apr 2017, 4:05 PM
#40
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

I cannot disagree with you, DrByte. I just don't have the resources or knowledge to troubleshoot, especially since other proficient users had similar issues in years past with no other resolution.

I can't just say "Mr Host, there's something mucked up with the server and/or SSL setup, please fix it."

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com