From 78b67430cc1c7d02b4c142d365b521054ac33979 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Mon, 8 Nov 2021 09:59:39 +0530 Subject: [PATCH] Update authenticateMe.php --- ajax/authenticateMe.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ajax/authenticateMe.php b/ajax/authenticateMe.php index adab01a..cb87000 100644 --- a/ajax/authenticateMe.php +++ b/ajax/authenticateMe.php @@ -63,6 +63,14 @@ $std->error = false; setcookie("exchange[flo_id]", $floID, time () + (86400 * $cookie_life_days)); setcookie("exchange[session_id]", $s_id, time () + (86400 * $cookie_life_days)); setcookie("exchange[flo_pub_key]", $pubKey,time () + (86400 * $cookie_life_days)); + + $_SESSION['authenticated'] = true; + + //TEMPORARILY ASSIGNING ALL THESE VARIABLES TO $floID + $_SESSION['full_name'] = $floID; + $_SESSION['email'] = $floID; + $_SESSION['fb_id'] = $floID; + echo json_encode($std); return true;