• 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?

    https://www.ads-software.com/plugins/wp-native-php-sessions/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Josh Koenig

    (@outlandish-josh)

    The only reason I can think is if somehow the execution of that code happens before WordPress is booted, or though some kind of subprocess that doesn’t have the same characteristics as a normal WordPress loop.

    Did you use the same plugin in both places?

    Thread Starter bmaddeer1

    (@bmaddeer1)

    Thanks for your reply. I did use the same plugin in both places. It was installed and activated and working when using Theme Twelve, and then I just activated Oxygen so of course there was no change to the plug in

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does not work with Oxygen theme’ is closed to new replies.