How many ways we can pass the variable through the navigation between the pages?

php

Solution

Three ways can pass the variable through the navigation between the pages:

- Put the variable into session in the first page, and get it back from session in the next page.

- Put the variable into cookie in the first page, and get it back from the cookie in the next page.

- Put the variable into a hidden form field, and get it back from the form in the next page.

Problem

Which is Better And Secure way to Pass the variable through the navigation between the pages?

Original source