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.

eZ debug

Timing: Jan 20 2025 17:22:58
Script start
Timing: Jan 20 2025 17:22:58
Module start 'layout'
Timing: Jan 20 2025 17:22:58
Module start 'content'
Timing: Jan 20 2025 17:22:59
Module end 'content'
Timing: Jan 20 2025 17:22:59
Script end

Main resources:

Total runtime0.9578 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.0045 588.0625151.2266
Module start 'layout' 0.00450.0023 739.289136.6797
Module start 'content' 0.00680.9501 775.9688565.2969
Module end 'content' 0.95690.0008 1,341.265611.8125
Script end 0.9578  1,353.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3045160.0002
Check MTime0.00120.1233160.0001
Mysql Total
Database connection0.00060.067210.0006
Mysqli_queries0.918795.9178570.0161
Looping result0.00040.0444550.0000
Template Total0.931597.320.4658
Template load0.00180.188320.0009
Template processing0.929797.066320.4648
Template load and register function0.00010.009810.0001
states
state_id_array0.00110.112510.0011
state_identifier_array0.00120.124920.0006
Override
Cache load0.00150.1548230.0001
Sytem overhead
Fetch class attribute can translate value0.00050.051920.0002
Fetch class attribute name0.00070.072350.0001
XML
Image XML parsing0.00090.094020.0005
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00080.0880240.0000
String conversion0.00000.000740.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
3content/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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs