I am grabbing the Page Title and storing it as a session variable, each time I go to a new page it replaces the session, meaning the session holds the current Page Title only.
Then when I go to a page, say "refereed.html" I want it to output whats in the session variable. Therefore the page "refereed.html" can’t set a session variable or it will destroy the refeering pages varaiable and I won’t be able to get the referring pages Title.
All is working except how do I prevent "refereed.html" from storing the session variable?
I’m thinking TV’s which by default allows the variable to be set, and I can diselect it for that one page (using same template though), but the code below doesn’t store the variable, but it does if its used in a Snippet.
@EVAL $_SESSION['StorePageTitle']= $modx->documentObject['pagetitle'];
I thought @eval processed the following PHP code?