summaryrefslogtreecommitdiff
path: root/final/app/auth_dialog.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-05 00:35:24 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-05 00:35:24 +0200
commita5dba7cbf654d45763d85130e52f66cdce7871ba (patch)
treef5623cbdc7500c3f639d722b346b8576b01ceb11 /final/app/auth_dialog.php
parente7cf0e99f41ab8ba3bab8aed516123c6f4ff3979 (diff)
download2007-AWOR-a5dba7cbf654d45763d85130e52f66cdce7871ba.tar.gz
2007-AWOR-a5dba7cbf654d45763d85130e52f66cdce7871ba.tar.bz2
2007-AWOR-a5dba7cbf654d45763d85130e52f66cdce7871ba.zip
Version AWOR_v1.1HEADmaster
Diffstat (limited to 'final/app/auth_dialog.php')
-rw-r--r--final/app/auth_dialog.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/final/app/auth_dialog.php b/final/app/auth_dialog.php
index fce5948..180f23c 100644
--- a/final/app/auth_dialog.php
+++ b/final/app/auth_dialog.php
@@ -96,13 +96,14 @@ function authentification($loginP,$pass,$verifAuth="")
}
}
-
-
- session_start();
- $_SESSION['session_loginP']=$loginP;
- $_SESSION['session_nomP']=$nomP;
- $_SESSION['session_prenomP']=$prenomP;
- $_SESSION['session_idP']=$idP;
+ if ($verifAuth == "")
+ {
+ session_start();
+ $_SESSION['session_loginP']=$loginP;
+ $_SESSION['session_nomP']=$nomP;
+ $_SESSION['session_prenomP']=$prenomP;
+ $_SESSION['session_idP']=$idP;
+ }
}
return ($auth_is_ok?true:$errmsg);
}