Zen Cart Logo
Forums / Search Engines / Session ID vs Cookie

Session ID vs Cookie

Views: 87

Results 1 to 7 of 7
24 Oct 2013, 9:16 PM
#1
pietpetoors avatar

pietpetoors

Zen Follower

Join Date:
Jun 2010
Location:
South Africa
Posts:
140
Plugin Contributions:
0

Session ID vs Cookie

I am currently battling with very bad SEO for my web site and looking for solutions
One of the things Google webmaster tools showed as a problem is a large number of URLs it could not crawl

One of the solutions they suggest is:

Wherever possible, avoid the use of session IDs in URLs. Consider using cookies instead.

Where in ZenCart's admin can I setup zencart to rather use cookies instead of session ID?

The list of links it could not crawl all ends with a session id, like
http://www.4x4direct.co.za/shop/recovery-gear-c-6/tow-hitch-pin-p-825.htm?zenid=3a917jbp2f3bc2ain7gv3bcd22

24 Oct 2013, 9:42 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Session ID vs Cookie

Unless you have hard-coded links that include the zenid, the only page whose URL will include one is the first page the visitor lands on when visiting your site.

25 Oct 2013, 10:56 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Session ID vs Cookie

pietpetoors:

The list of links it could not crawl all ends with a session id, like
http://www.4x4direct.co.za/shop/recovery-gear-c-6/tow-hitch-pin-p-825.htm?zenid=3a917jbp2f3bc2ain7gv3bcd22

Looks like maybe your URL-rewrite tool is interfering with normal session behavior?
Plus, it also looks like you've been changing the settings in Admin->Configuration->Sessions instead of leaving them at the defaults. Spiders/robots should NOT start sessions, and yours obviously are trying to.

26 Oct 2013, 8:54 PM
#4
pietpetoors avatar

pietpetoors

Zen Follower

Join Date:
Jun 2010
Location:
South Africa
Posts:
140
Plugin Contributions:
0

Re: Session ID vs Cookie

Thank you MrByte
What is the defaults? I currently have (after I changed the spider setting as suggested by you)

Title Value Action

Cookie Domain True
Force Cookie Use False
Check SSL Session ID False
Check User Agent False
Check IP Address False
Prevent Spider Sessions True
Recreate Session True
IP to Host Conversion Status true
Use root path for cookie path False
Add period prefix to cookie domain True

28 Oct 2013, 7:35 PM
#5
pietpetoors avatar

pietpetoors

Zen Follower

Join Date:
Jun 2010
Location:
South Africa
Posts:
140
Plugin Contributions:
0

Re: Session ID vs Cookie

Hi Mr Byte, can you please tell me what all the default settings should be?

28 Oct 2013, 7:46 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Session ID vs Cookie

The settings in your post #4 are the proper default settings.

29 Oct 2013, 5:46 AM
#7
pietpetoors avatar

pietpetoors

Zen Follower

Join Date:
Jun 2010
Location:
South Africa
Posts:
140
Plugin Contributions:
0

Re: Session ID vs Cookie

Thank you, so it was then only the spider setting that was wrong.