08.10.2017 Views

codeigniter_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CodeIgniter<br />

Destroying a Session<br />

In PHP, we are using the session_destroy() function to destroy the session and in<br />

CodeIgniter we can destroy the function as shown below.<br />

$this->session->sess_destroy();<br />

After calling this function, all the session data including the flashdata and tempdata<br />

will be deleted permanently and cannot be retrieved back.<br />

64

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!