Mam problem gdy klikam "Dodaj Monete" dodaje ją i wykonuje update do bazy lecz nie aktualizuje mi sesji mógłby ktoś mnie naprowadzić co zrobić ?

Pozdrawiam .
Pokazanie monety :
Przycisk:
echo '<li><a href="" onclick="dodajemy(1)"><span class="flag flag-usa flag-1x" ></span>DODAJ MONETE</a></li>';
Skrypt:
<html> <head> <script> function dodajemy($id){ //get the input value $.ajax({ //the url to send the data to url: "essa.php", //the data to send to data: {id : $id}, //type. for eg: GET, POST type: "POST", //on success success: function(data){ console.log("***********Success***************"); //You can remove here console.log(data); //You can remove here }, //on error error: function(){ console.log("***********Error***************"); //You can remove here console.log(data); //You can remove here } }); } </script> </head> </html>
tutaj plik essa.php
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "cs"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { } $id = $_POST['id']; $name = $_SESSION['name']; $sql = "UPDATE csgo SET monety = monety + 1 WHERE name = '$name'"; if ($conn->query($sql) === TRUE) { $_POST['monety'] = $_SESSION['monety']; } else { } $conn->close(); ?>