I save authentication information in PHP Session variables. Works as it should anywhere - except on Samsung Internet on my Galaxy S8.
Found out that var_dump($_SESSION);
is completely empty at subsequent calls, both Jquery ajax
and javascript fetch
. But only on my phone: works as it should on a Galaxy Note 8.
Edit 1:
echo "<script>alert('session_id: ".session_id()."') ; </script>";
Added this at both the main page and the called page. On my s8 they were different.
Edit 2:
It was probably a bug in Samsung Internet 8 (8.2.01.2). Upgraded to latest and the issue is gone. Note that fetch
is supported since 4.0