Can't pass an array
-
I’m trying to pass an array in $wp_session but I can’t retrieve it.
This is what I did, on page 1:$wp_session = WP_Session::get_instance(); $wp_session['user_contact'] = array( 'email' => '[email protected]' );
Then on page 2 i tried few things:
$data = wp_session_encode(); print_r($data);
and got this:
{“user_contact”:{}}print_r($wp_session);
What am i doing wrong?
Thanks!
https://www.ads-software.com/extend/plugins/wp-session-manager/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can't pass an array’ is closed to new replies.