eZSession storage : file or DB ?

Author Message

Maxime Thomas

Wednesday 24 June 2009 2:06:05 am

Hi all,

I've looked around but not have'nt found the response to my question : is a SessionHandler existing and does we have the choice to choose the way session arer stored in eZ ?

I would like to store sessions only in files, is it possible ? What about locks ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Damien Pobel

Wednesday 24 June 2009 4:15:52 am

Hi Maxime,

As far as I know, it's not possible yet, but I hope this enhancement will be part of the next release (4.2) [1].

With eZ Publish 4.1 I think there is a workaround as the session mecanism is provided by the eZSession PHP class so it should be possible to define your own eZSession class in an extension and generate the autoload array so that your eZSession class overrides the default one.

[1] http://issues.ez.no/14489#Comment260364

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Maxime Thomas

Wednesday 24 June 2009 4:29:14 am

Hi Damien,

Thank you for this quick response.
I will wait for 4.2 so...

:-D

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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:13:54
Script start
Timing: Jan 18 2025 19:13:54
Module start 'layout'
Timing: Jan 18 2025 19:13:54
Module start 'content'
Timing: Jan 18 2025 19:13:56
Module end 'content'
Timing: Jan 18 2025 19:13:56
Script end

Main resources:

Total runtime1.5555 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9141152.6250
Module start 'layout' 0.00570.0029 740.539139.4453
Module start 'content' 0.00861.5453 779.9844549.0313
Module end 'content' 1.55390.0016 1,329.015612.1563
Script end 1.5555  1,341.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2186160.0002
Check MTime0.00140.0912160.0001
Mysql Total
Database connection0.00070.047110.0007
Mysqli_queries1.502696.6012570.0264
Looping result0.00060.0410550.0000
Template Total1.518197.620.7590
Template load0.00220.138320.0011
Template processing1.515997.455020.7580
Template load and register function0.00010.005310.0001
states
state_id_array0.00090.056310.0009
state_identifier_array0.00210.135520.0011
Override
Cache load0.00180.1152190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.039020.0003
Fetch class attribute name0.00130.082050.0003
XML
Image XML parsing0.00090.059120.0005
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00100.0613220.0000
String conversion0.00000.000640.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs