SAEWEB2.2/ci/application/controllers/Deconnexion.php

16 lines
414 B
PHP
Raw Normal View History

2024-06-10 11:16:43 +02:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Deconnexion extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('model_music');
}
public function index() {
$this->session->unset_userdata('logged');
2024-06-12 19:08:54 +02:00
$this->session->unset_userdata('mail');
2024-06-10 11:16:43 +02:00
$this->session->sess_destroy();
2024-06-12 11:18:32 +02:00
redirect('welcome');
2024-06-10 11:16:43 +02:00
}
}