This question already has an answer here:
I am using $_SESSION array and on one page when I print array by using print_r($_SESSION); then it displays data, but on the same page when I include another page and that page also have print_r($_SESSION); but don't show any data. Means on the same page it shows data one time and the second time it displays an empty array.
</div>
you should start every page with session_start();