$http = true;
                            } else {
                                $http = false;
                            }
                            // Important !!!
                            session_set_cookie_params(0, "/", $_SERVER["SERVER_NAME"], $http, TRUE);
                        }
                    } else {
                        echo "Please Confirm Your Email!";
                    }
                } else {
                    echo "Incorrect Password!";
                }
            } else {
                echo "Username Not Found!";
            }
        } catch (PDOException $e) {
            echo $e->getMessage();
        }
    }
}
if (!empty($_POST["Username"]) && !empty($_POST["Password"])) {
    $wallet = new Wallet($con);
    $username = $_POST["Username"];
    $password = $_POST["Password"];
    echo $wallet->Wallet_login($username, $password);
} elseif (empty($_POST["Username"])) {
    echo "Please Enter Username!";
} elseif (empty($_POST["Password"])) {
    echo "Please Enter Password!";
}