Forums / Developer / Excluding views from "LastAccessesURI"

Excluding views from "LastAccessesURI"

Author Message

H-Works Agency

Tuesday 02 February 2010 9:04:58 am

Hello,

Is it possible to avoid modules view addresses to be recorded in "LastAccessesURI" session var ?

Because when you use ajax or xml asynchronous views their addresses are recorded in the var then when you use a function with redirection it redirects you for example your ajax view.

EZP is Great

Damien Pobel

Thursday 04 February 2010 5:52:05 am

Hi Martin,

there's an issue about that : http://issues.ez.no/12621

currently there are two ways to fix this :

  1. use the index_ajax.php script for ezjscore or ezcore extensions with some custom rewrite rules on URLs used in your call AJAX
  2. if you wrote your own module/view for your AJAX calls, set the ui_context of your view to 'edit' or 'administration' or 'browse' or 'authentication' (see index.php around line 917)

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish