how to show message after logout in codeigniter code example
Example: how to show message after logout in codeigniter
function logout_with_flashdata(){
$ci =& get_instance();
foreach($ci->session->userdata as $k => $v){
if($k == 'message' || $k == '__ci_vars'){
continue;
}
$ci->session->unset_userdata($k);
}
}