43 |
* important thing to prevent this is to set the $_SESSION['login'] to |
* important thing to prevent this is to set the $_SESSION['login'] to |
44 |
* value that is not empty and that is bogus. |
* value that is not empty and that is bogus. |
45 |
*/ |
*/ |
46 |
public function __construct() { |
protected function __construct() { |
47 |
session_start(); |
session_start(); |
48 |
// Setter les variables de $_SESSION pour la connexion avec BD |
// Setter les variables de $_SESSION pour la connexion avec BD |
49 |
$_SESSION['collectivite'] = 1; // Arles |
$_SESSION['collectivite'] = 1; // Arles |
68 |
* Unsets in the $_SESSION the key=>value pairs that were set in |
* Unsets in the $_SESSION the key=>value pairs that were set in |
69 |
* the constructor. |
* the constructor. |
70 |
*/ |
*/ |
71 |
public function __destruct() { |
protected function __destruct() { |
72 |
unset($this->f); |
unset($this->f); |
73 |
unset($_SESSION['login']); |
unset($_SESSION['login']); |
74 |
unset($_SESSION['collectivite']); |
unset($_SESSION['collectivite']); |