Session or similar

I’m creating a webshop in Flash using an array which stores the items put in the basket.
Is it possible somehow to store this array in a session in PHP or similiar, so it will save the basket if the user reloads the page or visit another page and then return to my page?