Forums / General / LastAccessesUri and caching
Matteo Mosangini
Wednesday 22 July 2009 2:28:56 am
Hi,
Environment: ezp 4.1.3 php 5.2.10 apache 2.2.11 OS Debian
I'm experiencing a strange problem: when caching (view, template) is enabled LastAccessUri is non set when you edit a content Item.To overcame this problem I modified index.php:
original code:
// Update last accessed view page if ( $currentURI != $lastAccessedViewURI and !in_array( $module->uiContextName(), array('edit', 'administration', 'browse', 'authentication' ) ) ) { $http->setSessionVariable( "LastAccessesURI", $currentURI ); }
modified code:
// Update last accessed view page if ( $currentURI != $lastAccessedViewURI and !in_array( $module->uiContextName(), array('edit', 'administration', 'browse', 'authentication' ) ) ) { if (strlen($currentURI)>0){ $http->setSessionVariable( "LastAccessesURI", $currentURI ); } }
Is this a bug?Should I report it?
Jean-Benoit Murat
Saturday 03 October 2009 6:46:59 am
I had exactly the same problem and I searched for a long time to solve it !
Thanks for all and I think you should report It
JB