Exclude URI from the "LastAccessURI" recording system ?

Author Message

H-Works Agency

Wednesday 14 May 2008 2:23:18 am

Hello,

I need to exclude certain URI (with wildcard if possible) from the mechanism recording the "LastAccessURI".

In fact all my asynchronous calls (ajax or calls from flash) are recorded in this. The result is that after logging or publishing contents i am redirected to those addresses.

How can it be solved ?

Thanx in advance for any help.

Martin

EZP is Great

André R.

Wednesday 14 May 2008 3:33:11 am

A. Hack index.php and avoid storing the session if request is ajax request (X-Requested-With http header is quite common)

B. make sure all views you use this way properly exit's in the end of the view php code so that session code never run on them.
Try something like this:

eZExecution::cleanup();
eZExecution::setCleanExit();
exit;

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

H-Works Agency

Wednesday 14 May 2008 3:47:04 am

Arghh it doesn't seems usable for my case.

In fact the pages i need to avoid doesn't rely on a custom php file...they are usually using the classical content/view system.

And i can't modify base file so won't be able to edit index.php.

Thanx for your help anyway.

Martin

EZP is Great

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