How can I go about unsetting flashdata using the Codeigniter Session library? I know flashdata normally expires after one page refresh, however I'm using AJAX in a portion of my app, and when setting flash data, it still exists if I make a second AJAX call, so I need a method of unsetting flashdata manually.
I thought this might work as it is similar to unsetting session userdata:
$this->session->unset_flashdata('some_val');
However it doesn't do anything, any suggestions?