diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-05 00:35:24 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-05 00:35:24 +0200 |
commit | a5dba7cbf654d45763d85130e52f66cdce7871ba (patch) | |
tree | f5623cbdc7500c3f639d722b346b8576b01ceb11 /final/app/auth_dialog.php | |
parent | e7cf0e99f41ab8ba3bab8aed516123c6f4ff3979 (diff) | |
download | 2007-AWOR-master.tar.gz 2007-AWOR-master.tar.bz2 2007-AWOR-master.zip |
Diffstat (limited to 'final/app/auth_dialog.php')
-rw-r--r-- | final/app/auth_dialog.php | 15 |
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); } |