What causes ezpublish to create sessions ?

Author Message

Nick Woods

Thursday 01 April 2004 1:09:04 pm

I have a site which doesnt require logons. I've noticed that the url will sometimes change to include an 'ezsessid=' parameter, which I assume to be a session id.

What causes ezpublsh to allocate a session id in this way ?

The site content changes infrequently, only one page has a reference to currentdate() and I sometimes see a session id even if i've not looked at that page

Paul Forsyth

Thursday 01 April 2004 1:19:58 pm

PHP creates the sessions.

Which version of PHP are you using? I believe the latest versions don't show the session id...

paul

Bruce Morrison

Thursday 01 April 2004 3:00:53 pm

Hi Nick

To get rid of the session variabl from the URL try setting session.use_trans_sid off in php.ini.

http://ez.no/community/forum/setup_design/site_not_being_indexed_by_google_solution

ez Publish generates sessions every time someone accesses a site.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Nick Woods

Friday 02 April 2004 3:28:08 am

Thankyou both - I'm using php 4.3.4 and currently session.use_trans_sid is On. I also have the google problem so i hope it will fix both problems

Nick Woods

Monday 05 April 2004 9:47:28 am

I've now changed my php.ini settings and am no longer getting session ids in the URL - thanks once again for the help

However, google is still only indexing the home page and doesnt appear to be following any links - it last indexed my site after i made the change to php.ini

I have <meta name="robots" content="ALL"> on all the pages, which if i undertstand it correctly should cause google to index my site (i got this from http://www.robotstxt.org/wc/meta-user.html) but it doesnt appear to be working

Any ideas ?

Tony Wood

Monday 05 April 2004 2:29:19 pm

Hi,

You should check that your site does not use Javascript for navigation. If your site does use Javascript Googles will not understand this and stop.

To test this try running your site on a browsers with JS disabled. If you are running Linux use 'lynx' as this is a great way to test your site.

-- tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Bruce Morrison

Monday 05 April 2004 3:30:42 pm

Hi Nick

Post the URL of the site in question so we can have a look?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Nick Woods

Tuesday 06 April 2004 2:04:23 am

Thanks again for the replies

The site is http://www.carrotland.co.uk and there isnt any javascript used for navigation - I tried it out with javascript disabled and it worked fine.

Google re-indexed it again last night but it still only appears to have looked at the home page.

Bruce Morrison

Tuesday 06 April 2004 4:19:46 pm

Hi Nick

The following link will let you know what pages from the site are in the google index -
http://www.google.com/search?q=site:www.carrotland.co.uk+inurl:www.carrotland.co.uk

It may take a couple of days or weeks for google to "find" the links now you have gotten rid of the session info from the URL and then a couple more for them to actually appear in the search results.

The only thing I'd be wary of is that the links contain index.php followed by the page reference. We run our sites with the apache rewrite rule which eliminates this and I'm not sure how google handles these types of links. I would have though they would be OK.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Nick Woods

Wednesday 07 April 2004 1:09:37 am

Thanks Bruce. Can you tell me what settings you use for the rewrite rule and where you make the change ? This isnt something I've come across before

Bruce Morrison

Wednesday 07 April 2004 5:14:16 am

Hi Nick

See http://ez.no/ez_publish/documentation/installation/virtual_host_setup

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Nick Woods

Wednesday 07 April 2004 5:54:03 am

Thanks again Bruce - I'll give this a try. Are those the rewriterule settings that you use ?

Nick Woods

Wednesday 07 April 2004 3:05:47 pm

I've made the change and the site appears to work exactly as before exceot that index.php isnt shown any more, so its just a case of waiting for another visit from the googlebot.

Thanks once again

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:08:31
Script start
Timing: Jan 18 2025 19:08:31
Module start 'layout'
Timing: Jan 18 2025 19:08:31
Module start 'content'
Timing: Jan 18 2025 19:08:31
Module end 'content'
Timing: Jan 18 2025 19:08:31
Script end

Main resources:

Total runtime0.0215 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 589.1641152.6406
Module start 'layout' 0.00810.0036 741.804739.4766
Module start 'content' 0.01170.0077 781.2813105.3672
Module end 'content' 0.01940.0020 886.648446.3047
Script end 0.0214  932.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002813.2003140.0002
Check MTime0.00125.5494140.0001
Mysql Total
Database connection0.00136.011310.0013
Mysqli_queries0.003616.650630.0012
Looping result0.00000.126610.0000
Template Total0.00167.310.0016
Template load0.00094.040810.0009
Template processing0.00073.272610.0007
Override
Cache load0.00062.756410.0006
General
dbfile0.002411.338780.0003
String conversion0.00000.042240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs