Forums / General / Siteaccess & Session
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 Exponential 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
HiDid 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
Friday 11 August 2006 9:50:40 am
Hi KristofI'm late :(
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=customSessionNamePerSiteAccess=disabled
settings/site.ini [Session] SessionTimeout=259200 ActivityTimeout=3600 CookieTimeout= SessionNameHandler=custom #SessionNamePrefix=eZSESSIDSessionNamePerSiteAccess=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 !
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>