We\'re randomly getting some very strange error logs. They don\'t happen on every page hit, even with the same parameters/actions/etc, and they don\'t seem repeatable, each
This happens when we try to initialize the session before loading the class definitions for the object we are trying to save into the session.
you can use simply json methods in PHP
json_encode that array and again json_decode that array and save it in a variable and than print that variable. you will get a simple array.
eg.
$array = array(); // this is your array variable to whom you are trying to save in a session
$encode = json_encode($array);
$decode = json_decode($encode);
echo '';
print_r($decode);
it will work surely.