Session Problem in Shopping-Cart

Author Message

Nico Westermann

Sunday 13 June 2004 10:44:05 am

Hello,
first a big compliment to all producers - eZ Publish is a wounderfull CMS.

But i still have a problem with she shopping-cart. eZ automaticaly uses php-sessions, if cookies are disabled. That woks fine - but not in the sopping-cart. If you add something to the card, you will taken to the full cart-site, but no products are there. If you then continiue shopping by clicking on another link, a new session-id will be created.

Am I to terrible to configurate the system right, or is this a bug?

It would be great, if someone could help me!

Thanks, and sorry for this bad english ..

Jan Borsodi

Sunday 13 June 2004 11:44:34 pm

eZ publish will not work properly without sessions.

If cookies are turned off you will get a new session on each page load, and since the basket is tied to the session it will be empty.

The only way to use eZ publish without cookies is to enable the <i>session.use_trans_sid</i> setting in <i>php.ini</i>.
However I won't recommend it since it is a security issue, see this page for more info.
http://www.php.net/manual/en/ref.session.php

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 19 2025 04:20:57
Script start
Timing: Jan 19 2025 04:20:57
Module start 'layout'
Timing: Jan 19 2025 04:20:57
Module start 'content'
Timing: Jan 19 2025 04:20:58
Module end 'content'
Timing: Jan 19 2025 04:20:58
Script end

Main resources:

Total runtime0.8707 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 590.3984152.6406
Module start 'layout' 0.00490.0030 743.039139.4766
Module start 'content' 0.00790.8612 782.5156521.5078
Module end 'content' 0.86900.0017 1,304.02348.1406
Script end 0.8707  1,312.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3674160.0002
Check MTime0.00140.1578160.0001
Mysql Total
Database connection0.00070.083310.0007
Mysqli_queries0.827595.0329540.0153
Looping result0.00060.0635520.0000
Template Total0.840896.620.4204
Template load0.00240.274820.0012
Template processing0.838496.285720.4192
Template load and register function0.00040.045910.0004
states
state_id_array0.00130.153110.0013
state_identifier_array0.00170.195620.0009
Override
Cache load0.00200.2267160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.102020.0004
Fetch class attribute name0.00120.141030.0004
XML
Image XML parsing0.00070.085220.0004
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00080.0950170.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs