Tried examples from 'php.net' but don't understand what's the problem. Any suggestions ?
<?php
$_SESSION['test'] = array('a' => '1', 'b' => '2');
foreach ($_SESSION['test'] as $key => $val)
echo "key: " . $key . " val: " . $val . "\n";
// Parse error
array_push($_SESSION['test']['c'] => '3');
// Parse error
$_SESSION['test'][] = ('c' => '3');
foreach ($_SESSION['test'] as $key => $val)
echo "key: " . $key . " val: " . $val . "\n";
?>