Actualmente lo tengo asi:
Código HTML:
<form action="ses.php" method="post">
<input type="text" name="a" />
<input type="text" name="b" />
<input type="text" name="c" />
<input type="text" name="d" />
<input type="text" name="e" />
<input type="submit" value="Enviar" />
</form>
Código PHP:
<?php
$pos = 1;
$_SESSION[$pos][1] = $_POST['a'];
$_SESSION[$pos][2] = $_POST['b'];
$_SESSION[$pos][3] = $_POST['c'];
$_SESSION[$pos][4] = $_POST['d'];
$_SESSION[$pos][5] = $_POST['e'];
foreach($_SESSION as $key){
foreach($key as $value){
echo $value."<br />";
}
}
?>
y funciona sin problemas