<?php
session_start();
$_SESSION[] = array('itemName'=> "'".$_POST["name"]."'",
'itemPrice'=> "'".$_POST["price"]."'"
);
print_r($_SESSION);
?>
I am posting the data through jQuery, and although the print_r displays correct data, but PHP above doesn't save in session, any idea?