I am trying to get SESSION to work with Wordpress, but it cannot work, even I added the code below to my plugin, but nothing happens:
add_action('init', 'simpleSessionStart', 1); add_action('wp_logout', 'simpleSessionDestroy'); add_action('wp_login', 'simpleSessionDestroy'); function simpleSessionStart() { if(!session_id())session_start(); } function simpleSessionDestroy() { session_destroy (); }
How can I make the transfer date of $ _SESSION from one page to another on my wordpress site
My Wordpress Version: 3.5.2
My theme: twentyeleven
source share