Dalam folder application ada folder controllers kemudian buatlah file php baru dengan nama Logout.php dan isilah kodingnya sebagai berikut :
<?php
class Logout extends CI_Controller {
public function index()
{
$this->session->sess_destroy();
redirect(base_url('beranda'));
}
}
<?php
class Logout extends CI_Controller {
public function index()
{
$this->session->sess_destroy();
redirect(base_url('beranda'));
}
}
ConversionConversion EmoticonEmoticon
Note: Only a member of this blog may post a comment.