'How to save session data permenantly when the data are sent from Flutter function using http.post method

I want to access the session value in PHP from another PHP file that is assigned with a value sent from the Flutter HTTP.post method. When I try this I got the session value null.

Please help me to find the solution.

  Future goMagic() async {
    var url = "http://192.168.0.110/php_trial/page1.php";
    http.Response response = await http.post(Uri.parse(url),body:{'name':'boris bob'});
    print(response.body);

    url = "http://192.168.0.110/php_trial/page2.php";
    response = await http.post(Uri.parse(url),body:{});
    print(response.body);
  }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source