Session is create and print in backend but not work in frontend
问题 I am facing some strange issue. This problem happens on server. I am facing this problem since last 5-6 days. It was working for me until last 1 year. When I call a login api, if user credential is right then I create a session. Here is my code: if ($user){ if ($user['is_active'] == 1){ global $user_data; $user_data = $user; $response["error"] = false; $_SESSION['user_data'] = $user; // -- session is create print_r($_SESSION); // session is print. $_SESSION['is_login'] = 'No'; unset($_SESSION