/[openfoncier]/trunk/services/metier/metiermanager.php
ViewVC logotype

Diff of /trunk/services/metier/metiermanager.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 525 by mlimic, Thu Oct 18 16:37:15 2012 UTC revision 526 by mlimic, Fri Oct 19 14:38:37 2012 UTC
# Line 43  class MetierManager { Line 43  class MetierManager {
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
# Line 68  class MetierManager { Line 68  class MetierManager {
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']);

Legend:
Removed from v.525  
changed lines
  Added in v.526

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26