[eluser]Unknown[/eluser]
In my core controller I'm trying to create an array of the user's history. I am creating an array and then setting the key as the time and the value as the page URL. However the problem that I'm having is that the previous array seems to get overwritten so there is only ever one key and value pair in the array.
How can I do it so that instead each page will get appended to the array
Code:
$history = array(
time() => curPageURL()
);
$this->session->set_userdata('history', $history);
Thanks for any help