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' => 'firstname.lastname@example.org' );
Then on page 2 i tried few things:
$data = wp_session_encode(); print_r($data);
and got this:
What am i doing wrong?