This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » User Login redirection with cache

User Login redirection with cache

User Login redirection with cache

Thursday 30 January 2014 10:10:23 am


i have implemented a listener to the ezpublish.pre_content_view event in ez 5.1 to force a login redirection to /user/login if the user is anonymous, like recommended in this post:

It works fine, but with active caching the content is delivered from the cache, the event is not triggered and I get an UnauthorizedException instead of the user/login/ template. I also wanted to listen to the ezpublish.api.contentException and then redirect, but without success. The event is not triggered either.

Is there no standard way to protect a siteaccess with a login?

No reply yet!


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from