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.

eZ debug

Timing: Jan 18 2025 15:53:54
Script start
Timing: Jan 18 2025 15:53:54
Module start 'layout'
Timing: Jan 18 2025 15:53:54
Module start 'content'
Timing: Jan 18 2025 15:53:54
Module end 'content'
Timing: Jan 18 2025 15:53:54
Script end

Main resources:

Total runtime0.6477 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.0056 589.1797152.6406
Module start 'layout' 0.00560.0031 741.820339.4766
Module start 'content' 0.00870.6378 781.2969539.8438
Module end 'content' 0.64650.0012 1,321.140612.1250
Script end 0.6477  1,333.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5066160.0002
Check MTime0.00130.2049160.0001
Mysql Total
Database connection0.00060.085710.0006
Mysqli_queries0.600692.7171570.0105
Looping result0.00040.0693550.0000
Template Total0.618895.520.3094
Template load0.00220.334120.0011
Template processing0.616795.201820.3083
Template load and register function0.00010.013910.0001
states
state_id_array0.00130.195110.0013
state_identifier_array0.00090.139420.0005
Override
Cache load0.00180.2822220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.087520.0003
Fetch class attribute name0.00090.144240.0002
XML
Image XML parsing0.00110.173820.0006
class_abstraction
Instantiating content class attribute0.00000.001550.0000
General
dbfile0.00170.2607170.0001
String conversion0.00000.001440.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
2content/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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs