Forums / General / Siteaccess & Session

Siteaccess & Session

Author Message

Arnaud Lafon

Friday 11 August 2006 7:28:16 am

Hi guys,

first, sorry for my bad english, ill try to do my best ;)

I use ezpublish 3.8.2 with the webshop package

I have 3 siteaccess, one for FR (french version), one for EN, & one for administration.
My problem is :
- I'd like to have a unique session for both EN & FR siteaccess,
- But, If I set the SessionNamePerSiteAccess to <i>disable</i>, I have the same session for the administration siteaccess, and I don't want this for security reason

Is there any native function doing this ?
May I use a function of the user object or ... ?
Am I on the wrong way ?

Regards,

Arnaud

Looking for information about SQLI ?
Looking for a new job in Paris ?
Please contact me at alafon [at] sqli [dot] com

Kristof Coomans

Friday 11 August 2006 9:45:35 am

Hello Arnaud and welcome to the eZ community!

I think you can disable SessionNamePerSiteAccess and then use the SessionNamePrefix setting to make the sessions different. Use the same SessionNamePrefix for EN and FR, and another one for the admin access.

Does this work? Please confirm.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Marcin Drozd

Friday 11 August 2006 9:49:18 am

Hi
Did You try something like this (I think it should work):

/settings/override/site.ini.append.php:
[Session]
#SessionNameHandler=custom

/settings/sitteaccess/en_site/site.ini.append.php:
[Session]
SessionNameHandler=default
SessionNamePerSiteAccess=disabled

/settings/sitteaccess/fr_site/site.ini.append.php:
[Session]
SessionNameHandler=default
SessionNamePerSiteAccess=disabled

/settings/sitteaccess/admin_site/site.ini.append.php:
[Session]
SessionNameHandler=custom
SessionNamePerSiteAccess=enabled

http://ez-publish.pl

Marcin Drozd

Friday 11 August 2006 9:50:40 am

Hi Kristof
I'm late :(

http://ez-publish.pl

Arnaud Lafon

Monday 14 August 2006 2:41:07 am

Hi Marcin & Kristof,

The solution Kristof gave, is working fine. Thanks a lot !

settings/override/site.ini.append.php
[Session]
SessionNameHandler=custom
SessionNamePerSiteAccess=disabled

settings/site.ini
[Session]
SessionTimeout=259200
ActivityTimeout=3600
CookieTimeout=
SessionNameHandler=custom
#SessionNamePrefix=eZSESSID
SessionNamePerSiteAccess=disabled

settings/siteaccess/fr/site.ini.append.php & settings/siteaccess/en/site.ini.append.php
[Session]
SessionNamePrefix=SiteNameClient

settings/siteaccess/site_admin/site.ini.append.php
[Session]
SessionNamePrefix=SiteNameAdmin

This solution worked fine so I did not try Marcin solution... sorry Marcin ;)

I'll come back !

Regards,

Arnaud

Looking for information about SQLI ?
Looking for a new job in Paris ?
Please contact me at alafon [at] sqli [dot] com

Marcin Drozd

Monday 14 August 2006 3:12:39 am

Hi Arnaud

The solution Kristof gave, is working fine. Thanks a lot ! (...)
This solution worked fine so I did not try Marcin solution... sorry Marcin ;)

Kristof was faster, I am a slow writer <lol>

http://ez-publish.pl

eZ debug

Timing: Jan 20 2025 06:44:43
Script start
Timing: Jan 20 2025 06:44:43
Module start 'content'
Timing: Jan 20 2025 06:44:44
Module end 'content'
Timing: Jan 20 2025 06:44:44
Script end

Main resources:

Total runtime0.6333 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.8281180.8516
Module start 'content' 0.00660.5287 769.6797622.5781
Module end 'content' 0.53530.0979 1,392.2578337.0938
Script end 0.6332  1,729.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.6245210.0002
Check MTime0.00150.2432210.0001
Mysql Total
Database connection0.00070.107510.0007
Mysqli_queries0.553987.46982050.0027
Looping result0.00170.27292030.0000
Template Total0.603895.420.3019
Template load0.00190.293520.0009
Template processing0.602095.058620.3010
Template load and register function0.00010.012610.0001
states
state_id_array0.00100.155210.0010
state_identifier_array0.00070.115420.0004
Override
Cache load0.00170.2625580.0000
Sytem overhead
Fetch class attribute can translate value0.00120.196840.0003
Fetch class attribute name0.00100.150780.0001
XML
Image XML parsing0.00140.215540.0003
class_abstraction
Instantiating content class attribute0.00000.002890.0000
General
dbfile0.00240.3860340.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs