Why could anonymous user be required to log in?

Author Message

Piotrek Karaś

Thursday 27 December 2007 2:22:01 am

Let's say I have two different siteaccesses. There's also a user with default anonymous role that allows user's logins to <b>both</b> of these siteaccesses. Now, when accessing one siteaccess, user can read content, it works as expected. When accessing the other siteaccess, he doesn't have access to anything and a login form is displayed in the module result instead (without any kernel error notice).

<b>What could be the reason for this taking place?</b>

The two siteaccesses vary when it comes to their settings, so there may be something missing or misconfigured. I just can't spot anything that would make the key difference.

BTW. It's eZ Publish 4.0.0.

Thanks!

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Laurent BOURREL

Thursday 27 December 2007 3:12:50 am

Hi,

If you want that your user be logged in both site accesses, have a look at :
http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/site_ini/session/sessionnamepersiteaccess

I think that you also need the custom sessionnamehandler :
http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/site_ini/session/sessionnamehandler

Piotrek Karaś

Thursday 27 December 2007 3:27:35 am

Hi Laurent,

Thanks for the links. What you pointed to is not was I was looking for, but that's some very interesting functionality that I had not known about before, so big THANKS!

I've just solved my problem, and ashamed to mention that...

[SiteAccessSettings]
RequireUserLogin=false

was missing... ;)

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.