1. remember that content views are executed before pagelayout.
2. if it is a content view then you can use $persistent_variable, if you'r using ezwebin then you can use ezpagedata_set / ezpagedata_append and it will work on any module / view. 3. yes, you can use session, it's available on the ezhttp function, but it's not the solution here I would say. And making use of sessions in presentation layer is a bit of a no no :)