I have some value inside localtorage. For example, a code like this has set the localStorage :
<script>
    localStorage.setItem('jeton', 'toto');
    localStorage.setItem('cle', 'l1s7T4O7p79XDS9UwfG4YTBhkjoybjHBydC74VxgmXk=')
</script>
Then the file control.php want to access to the local storage :
<?php
    $token2  = JWT::decode(
         $jeton, 
        $cle , // The signing key
        array('HS512') 
    );
The problem is that $jeton et $cle has no value
How to put the localStorage.getItem('jeton') inside $jeton ?
Best regards.
 
     
    