Zen Cart Logo
Forums / General Questions / How to remove zenid in query string?

How to remove zenid in query string?

Locked

Views: 5,383

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
19 Dec 2007, 10:08 AM
#1
suman07 avatar

suman07

New Zenner

Join Date:
Dec 2007
Posts:
62
Plugin Contributions:
0

How to remove zenid in query string?

Hello
When website is first run a query string appears like zenid=sessionid. What should I do to remove this query string? Waiting for the reply
Thanx

19 Dec 2007, 12:06 PM
#2
suman07 avatar

suman07

New Zenner

Join Date:
Dec 2007
Posts:
62
Plugin Contributions:
0

Re: How to remove zenid in query string?

I mean I want to remove the query string from the URL.

19 Dec 2007, 12:21 PM
#3
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: How to remove zenid in query string?

Short answer: you can't

3 Jan 2008, 5:37 PM
#4
cooperwd avatar

cooperwd

New Zenner

Join Date:
Nov 2007
Posts:
19
Plugin Contributions:
0

Re: How to remove zenid in query string?

Can anyone point to the long answer?

3 Jan 2008, 7:15 PM
#5
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: How to remove zenid in query string?

Long answer,

this only displays Once when you forst load site,
then agqain when you go to https,

so back to the short answer you cant,

why would you want to,
since this is whats passed to store the session and the cart contents etc.....

5 Feb 2008, 10:32 PM
#6
tech_e avatar

tech_e

Zen Follower

Join Date:
Jan 2007
Posts:
159
Plugin Contributions:
0

Re: How to remove zenid in query string?

One good reason is because you never want a session ID to show up in a URL that is spidered by search engines.

Does Zen Cart contain code to detect spiders and turn off the session ID when a spider comes calling?

Spiders cannot accept cookies and this creates a conflict for session IDs. You can end up with hundreds of versions of the URL for the same page in search engine indexes.