I´m working on flash messages in CodeIgniter. I want to store them in array, but it stores just the last one.

How I want to make it works? For example, I´m saving text into database and I´m saving some images with the text. So I save text -> write flash message, than I´m saving images -> write other flash messages... and than it reloads and I want to write the flash messages array, but it writes just the last one.

My code for flash messages storing:

```
public function set_flash_message($value)
{   
   $admin_flash = $this->session->flashdata('admin_flash');
   $admin_flash[] = $value;
   $this->session->set_flashdata('admin_flash', $admin_flash);
}

```

And here is code for inserting text with 2 flash messages:

```
$this->texts_model->edit_text($id);
$this->upload_files($id, $this->input->post('files_titles'));
$this->set_flash_message('The text was successfully edited!');
$this->set_flash_message('The text was successfully edited! 2'); 
redirect('admin/texts/edit/'.$id);

```

It wrote just "The text was successfully edited! 2";

Thank you for your help!