Yes, you'd want something like this:
To add a property to portfolio:
e.g. /add.php?reference=1
Code:
<?php
session_start();
$_SESSION['portfolio'] .= ',' . $_GET['reference'];
?>
Then to get the references back:
e.g. /portfolio.php
Code:
<?php
session_start();
$references = explode(',' $_SESSION['portfolio']);
foreach($references as $ref) {
print($ref) . '<br />';
}
?>
I haven't written any PHP properly for ages, so excuse me if there are any syntax errors there. Should give you a good starting point though.
Matthew