Does not work with Oxygen theme
-
I used the plug in with the twenty Twelve theme and using sessions on a Page and it works great – other pages see session variables that are set. But with Oxygen, while a session variable stays current within a current page, other pages, or even the current page if you refresh it, shows the session variable not set. Using the plugin “Insert PHP” to write PHP within a Page, my experimental script on the page which sets a session is:
‘[insert_php]
session_start();
if(isset($_SESSION[‘test_var’])) {echo ‘Session was set and val is ‘ . $_SESSION[‘test_var’];}
else {$_SESSION[‘test_var’] = ‘1’; echo ‘Just set the var and it is ‘ . $_SESSION[‘test_var’];}
[/insert-PHP]’Any idea why session vars do not stick from page to page?
- The topic ‘Does not work with Oxygen theme’ is closed to new replies.