session variables not stored
-
Plugin works fine (no errors reported) but tried to store a variable into the session with no success.
$wp_session
exists as an object but fails to store my variable. Tries various approach…function one(){ $wp_session = WP_Session::get_instance(); $wp_session['screen_width'] = $value; ... } function two(){ $wp_session = WP_Session::get_instance(); echo isset($wp_session['screen_width']); //returns false }
tried setting up as
global
variable, but no luck.Did I miss something?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘session variables not stored’ is closed to new replies.