Hi,
i would like to analyse URL Parameters and write information of this to the session. Currently I use the hook_init for that, but this hook is not processed if the cache is activated. So this doesn't work at all.

Within a page I would like to analyse the session. Therfore i used the embeded PHP (php filter). But this is also not possible with cached pages. :-( . I tried to deactivate the filter cache by hacking the core module

function php_filter($op, $delta = 0, $format = -1, $text = '') {
....
case 'no cache':
// No caching for the PHP evaluator.
return true;
....
}

but still the same problem.

Could anyone give me some advice how i can solve my issue?

I have also an alternative idea but couldn't find information how i could get it done: add the url paramters to every link so that i don't have to use the sessions

Thanks for your help.

Comments

jemond’s picture

Status: Active » Needs review

You can use hook_boot:
http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo...

It runs even for cached paged (except I believe when aggressive caching is set)

cweagans’s picture

Priority: Major » Normal

Support requests are never critical or major.

rjbrown99’s picture

Status: Needs review » Active

...and there's no patch so changing status.

jemond’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.