As well as assigning values to sessions, such as numbers, we can also assign arrays. To do that, you just have to pretend to be an ordinary array.
Session array example:
<?php session_start(); $_SESSION['members'] = array ('Baransel', 'John', 'Andrew'); ?>
In this way, we can move the array data in the sessions. And when we call it on other pages, we can continue to use it exactly as an array.