// maintaining user session in a cookie // get data from cookie $data1 = $_COOKIE['data1']; $data2 = $_COOKIE['data2']; ?>