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

User Login redirection with cache

User Login redirection with cache

Thursday 30 January 2014 10:10:23 am

Hi,

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:http://share.ez.no/forums/ez-publish-5-platform/access_control-and-siteaccess

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!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from