Set php variable value in localstorage –

  echo "<script>document.write(localStorage.setItem('auth_Token', '".$auth_Token."'))</script>";

Get localstorage value into into a php variable –

  $phpvariable = "<script>document.write(localStorage.getItem('local_variable'))</script>";

0 Comments

Leave a Comment