Yes, storing an array is easy.
session_start();
$clothes=array("shoes", "jacket", "tie");
$_SESSION['cart'][]=$clothes;
echo $_SESSION['garments'][0];
//prints "shoes"...
The trick I had a tad of difficulty with: what if a user puts several items in a cart, (each item being an array) and then decides to take the third one out? ( unset $_SESSION['cart'][2] )
Then my loop will end prematurely!!
I finally wrote some reverse counting and comparing hack that works for that situation.
I'd think the main difficulties in re: security would be the database stuff. SQL injection, for example, in your scripts. And I'd be nervous about storing much personal customer information in the db. Of course, there's really some question as to whether or not anything's secure on the internet. Ever googled for your name?