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

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 20 2025 06:38:56
Script start
Timing: Jan 20 2025 06:38:56
Module start 'layout'
Timing: Jan 20 2025 06:38:56
Module start 'content'
Timing: Jan 20 2025 06:38:56
Module end 'content'
Timing: Jan 20 2025 06:38:56
Script end

Main resources:

Total runtime0.0143 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.0049 589.0313152.6094
Module start 'layout' 0.00490.0027 741.640639.4141
Module start 'content' 0.00760.0046 781.054797.3984
Module end 'content' 0.01220.0020 878.453138.3047
Script end 0.0142  916.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.2090140.0002
Check MTime0.00117.8587140.0001
Mysql Total
Database connection0.00075.226310.0007
Mysqli_queries0.002316.385530.0008
Looping result0.00000.076810.0000
Template Total0.001611.510.0016
Template load0.00096.535810.0009
Template processing0.00074.925710.0007
Override
Cache load0.00074.665110.0007
General
dbfile0.00031.879180.0000
String conversion0.00000.041840.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