If this is your first visit, check our documentation. To post, register or login.
Forums / Business Issues / Search Engines / How do I prevent the zenid from being added to URLs on the initial vist (v1.3.7)?

How do I prevent the zenid from being added to URLs on the initial vist (v1.3.7)?

Locked

Started by thieving_gypsy on 25 Oct 2007, 8:59 AM · Views: 7,114

Results 1 to 20 of 43
This thread is locked. New replies are disabled.
25 Oct 2007, 8:59 AM
#1
thieving_gypsy avatar

thieving_gypsy

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

Post #1 by thieving_gypsy

Hello All

My client wants to prevent the zenid (session id) from being appened to the URls on the users first visit. Is there are simple way in admin or am I missing something?

I have Chemos SEO URLs installed and the site is running on a windows box with the ISAPI rewrite engine.

Any ideas?

Thanks

Andy

25 Oct 2007, 9:47 AM
#2
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Post #2 by cjpinder

Thieving_Gypsy:

My client wants to prevent the zenid (session id) from being appened to the URls on the users first visit.
Why? What is the actual problem you are trying to solve?

As long as 'Sessions -> Prevent Spider Sessions' is set to True in Admin (which it always should be) then the search engines will not have a session created when they spider your site and will not get a zenid.

The only issue is if someone decides to post a link to your site that includes a zenid. There are ways of working around that situation though if that is the problem.

Regards,
Christian.

26 Oct 2007, 8:23 PM
#3
stevekim avatar

stevekim

New Zenner

Join Date:
Apr 2007
Location:
Los Angeles, CA
Posts:
44
Plugin Contributions:
0

Post #3 by stevekim

I have the same issue.
It seems that if "Prevent Spider Session..." option was set to false and the spider has once indexed the site while it was false, they revisit only using already-indexed pages.

Here is my suspicion:
Leads that came through google's search results that bears zenid ends up not being able to log-in with their own user id, because it bears zenid.

It is a suspicion because I'm not 100% sure, but customers sometimes call-in to first complain about not being able to login, then takes up about 10~20 minutes to order things for them. It's a waste of time, but I still get the order. But what about those who just exit? I'm loosing business here.

Hence, suppose my suspicion is at least part correct, the cause for this issue (cannot call it a problem because it is the way it's supposed to work using sessions to identify one from another), and a workaround for those who found the page through indexed pages that bear zenid because we don't have much control over SE once they've indexed, unless one is dare to request SE to remove all indexed pages that bear zenid and request to re-index everything with "Prevent Spider Session.." option to true.

SK.

**www.ToolUSA.com** - Hand Tools for Jewelers, Crafters, Garden and Households. Also offers Safety Items and Scout Gadgets.
**www.OfficialCap.com** - MLB Licensed Caps by New Era and NFL Licensed Caps by Reebok.

26 Oct 2007, 9:05 PM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Post #4 by merlinpa1969

set prevent spider sessions to true

then in I believe its still in application top rename zenid to something else

Zen cart PCI compliant Hosting

27 Oct 2007, 11:23 PM
#5
stevekim avatar

stevekim

New Zenner

Join Date:
Apr 2007
Location:
Los Angeles, CA
Posts:
44
Plugin Contributions:
0

Post #5 by stevekim

SteveKim:

I have the same issue.
It seems that if "Prevent Spider Session..." option was set to false and the spider has once indexed the site while it was false, they revisit only using already-indexed pages.

Here is my suspicion:
Leads that came through google's search results that bears zenid ends up not being able to log-in with their own user id, because it bears zenid.

It is a suspicion because I'm not 100% sure, but customers sometimes call-in to first complain about not being able to login, then takes up about 10~20 minutes to order things for them. It's a waste of time, but I still get the order. But what about those who just exit? I'm loosing business here.

Hence, suppose my suspicion is at least part correct, the cause for this issue (cannot call it a problem because it is the way it's supposed to work using sessions to identify one from another), and a workaround for those who found the page through indexed pages that bear zenid because we don't have much control over SE once they've indexed, unless one is dare to request SE to remove all indexed pages that bear zenid and request to re-index everything with "Prevent Spider Session.." option to true.

SK.

Merlinpa1969:

set prevent spider sessions to true

then in I believe its still in application top rename zenid to something else

Merlinpa, my problem is a bit more complicated than simply setting the Prevent Spider Sessions to True... because it already is set to true.

Set Admin->Configuration->Sessions->Recreate Session to False if anyone's having the same issue as mine quoted above. (having zenid at the end issue even though Prevent Spider Sessions is set to True).

SK.

**www.ToolUSA.com** - Hand Tools for Jewelers, Crafters, Garden and Households. Also offers Safety Items and Scout Gadgets.
**www.OfficialCap.com** - MLB Licensed Caps by New Era and NFL Licensed Caps by Reebok.

29 Oct 2007, 6:24 PM
#6
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Post #6 by cjpinder

SteveKim:

Merlinpa, my problem is a bit more complicated than simply setting the Prevent Spider Sessions to True... because it already is set to true.
You missed the key bit of Merlinpa's post which is to change the variable that Zen Cart uses for session IDs from zenid to something else. That way any search results that have picked up URLs with zenid in or any links with zenid in will not mess up the session handling for customers that click on them.

SteveKim:

Set Admin->Configuration->Sessions->Recreate Session to False if anyone's having the same issue as mine quoted above. (having zenid at the end issue even though Prevent Spider Sessions is set to True).
Actually, I would have said it was pretty important to have Recreate Sessions set to True in this case to stop customer's logins and carts getting mixed up. Recreate Sessions does not always work properly on all servers though.

The main thing to do is to change zenid to something else. Do it when no one is browsing though.

Regards,
Christian.

25 Nov 2007, 1:41 PM
#7
andyman23 avatar

andyman23

New Zenner

Join Date:
Sep 2006
Location:
North Carolina
Posts:
2
Plugin Contributions:
0

Post #7 by andyman23

In case some of you are wondering why zen_id is all of a sudden being added to your links (or always has) and you want it gone:

Be sure that your "Session Directory" in Configuration>Sessions is set to a directory that actually exists and is writable. If the directory doesn't exist, then Zen Cart will starting adding zenid to URLS.

Hope this helps.

21 Nov 2008, 7:37 PM
#8
minshop_no avatar

minshop_no

New Zenner

Join Date:
May 2008
Posts:
56
Plugin Contributions:
0

Post #8 by minshop_no

hmm, for me this is now a big problem. I have a ezpage which I use in a campaign, for singing up for my newsletter. http://www.minshop.no/index.php?main_page=page&id=16

it works fine when users click my ads on other sites and linking directly to that url. but, If they first goes to http://www.minshop.no and then clicks the "Lyst på en Xbox-360?" link down in the left side boxes, they get a zenid attached to that page. Then when they want to confirm their subscription clicking the link in the e-mail it sends them, it contains the same zenid in that url. If a user does not click this immediately, but waits a day, he will then get an error when trying to confirm the subscription. How can I remove zenid for this specific page when users browse their way in?

http://www.minshop.no
Zen Cart 1.3.8a | Easy Populate Mod 1.2.5.4 | Newsletter Subscribe v 2.1.0 | Image Handler 2 |

21 Nov 2008, 9:22 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #9 by ajeh

What code are you using?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Nov 2008, 9:32 PM
#10
minshop_no avatar

minshop_no

New Zenner

Join Date:
May 2008
Posts:
56
Plugin Contributions:
0

Post #10 by minshop_no

Ajeh:

What code are you using?

Not sure if this is the code your are looking for, but for the e-mail creating, I use Newsletter Subscribe v 2.1.0.

Do you think it is in that code I need to alter this?

http://www.minshop.no
Zen Cart 1.3.8a | Easy Populate Mod 1.2.5.4 | Newsletter Subscribe v 2.1.0 | Image Handler 2 |

21 Nov 2008, 10:21 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #11 by ajeh

sounds like the source of the problem ... need to strip the zenid off the url ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Nov 2008, 10:26 PM
#12
minshop_no avatar

minshop_no

New Zenner

Join Date:
May 2008
Posts:
56
Plugin Contributions:
0

Post #12 by minshop_no

Ajeh:

sounds like the source of the problem ... need to strip the zenid off the url ...

I see your point. When i hover the url from browsing to it from the front page, its shows with a zenid. Can this be done using the internal/external options in ez-pages settings for that page?

http://www.minshop.no
Zen Cart 1.3.8a | Easy Populate Mod 1.2.5.4 | Newsletter Subscribe v 2.1.0 | Image Handler 2 |

21 Nov 2008, 10:58 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #13 by ajeh

The code may need to be cleaned up to remove the zenid from the email in the same manner that the emails are built for Gift Certificates or Discount Coupons etc.

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 May 2009, 5:16 PM
#14
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Post #14 by rebekah

andyman23:

In case some of you are wondering why zen_id is all of a sudden being added to your links (or always has) and you want it gone:

Be sure that your "Session Directory" in Configuration>Sessions is set to a directory that actually exists and is writable. If the directory doesn't exist, then Zen Cart will starting adding zenid to URLS.

Hope this helps.

Can someone elaborate on this a bit? I copy and paste a lot of URLs from our site into my emails and I always first paste them into notepad and remove the zenid portion. Is there a way to prevent the zenid from being in the link in the first place?

My "Session" directory is chmod 755 (writable only by the owner). Should I change this? Or not?

Thanks for any help!
Rebekah

Using Zen Cart 1.3.8a

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

4 May 2009, 4:31 PM
#15
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,337
Plugin Contributions:
41

Post #15 by mprough

The sessions ID is a necessary function for your cart.... IF you have Zen Cart configured correctly, on reload (next click on the site) it will disappear.

~Melanie

4 May 2009, 4:53 PM
#16
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Post #16 by rebekah

Thanks for the reply, Melanie. I appreciate it.

Rebekah

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

5 May 2009, 2:28 AM
#17
gtgderek avatar

gtgderek

New Zenner

Join Date:
Mar 2009
Posts:
36
Plugin Contributions:
0

Post #17 by gtgderek

Something you may want to check is the Chmod permissions for the session folder. I have found that if it is not set to 777 then new visitors will get the zenid code at the end of the url address. If you have the correct permissions, this will typically stop the zenid from appearing on a URL.

Hope it helps.

5 May 2009, 2:34 AM
#18
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,337
Plugin Contributions:
41

Post #18 by mprough

gtgderek:

Something you may want to check is the Chmod permissions for the session folder. I have found that if it is not set to 777 then new visitors will get the zenid code at the end of the url address. If you have the correct permissions, this will typically stop the zenid from appearing on a URL.

Hope it helps.

It is correct behavior for the first page on a visit to have a session ID.......

Making folders 100% writable is not correct, unless they are the ones Zen Cart says. This is a bad and vulnerable practice....

Where would you find this sessions directory you have made writable to me and everyone else? I have never seen such a directory in Zen Cart, maybe it is called something else?

~Melanie

5 May 2009, 6:04 PM
#19
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Post #19 by rebekah

I found my "Sessions" directory by going into ZC admin. It's under...

Configuration | Sessions |Session Directory

Mine is chmod 755. So, this is correct, or not?

Thanks for joining in, gtgderek.

Rebekah

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *