diff options
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); } |