taktikhek

Untitled

May 30th, 2019
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. */
  5. class Home extends CI_Controller
  6. {
  7. public function __construct() {
  8. parent::__construct();
  9. if(!isset($this->session->login['id_user'])) {
  10. $this->session->sess_destroy();
  11. redirect('login');
  12. }
  13. }
  14. public function index(){
  15. $this->load->view("login_success_view");
  16. }
  17. public function logout() {
  18. $this->session->sess_destroy();
  19. redirect('login');
  20. }
  21. }
  22. ?>
Add Comment
Please, Sign In to add comment