CI_Session::keep_flashdata PHP Method

keep_flashdata() public method

Legacy CI_Session compatibility method
public keep_flashdata ( mixed $key ) : void
$key mixed Session data key(s)
return void
    public function keep_flashdata($key)
    {
        $this->mark_as_flash($key);
    }

Usage Example

示例#1
0
 public function keep_flashdata($key = null)
 {
     if ($key !== null) {
         parent::keep_flashdata($key);
     } else {
         // An added feature: Keep all the flash data.
         parent::keep_flashdata($this->get_flash_keys());
     }
 }
All Usage Examples Of CI_Session::keep_flashdata