set_flashdata not working after redirect but usedata workign code example Example: set_flashdata not working after redirect $message = $this->session->flashdata('data_name');