I am setting a cookie with javascript and trying to read it with PHP, but php is not able to read it. I have checked that the cookie is really set with a tool called Cookies Manager.
Code(JS):
<script> document.cookie="encrIv=" + ivB64; </script> Code(PHP):
<?php $encrIv = $_COOKIE['encrIv']; echo $encriv; ?> I get
Notice: Undefined index: encrIv in C:\Users\joonas\Desktop\Webon cms\root\readCookie.php on line 1
Screen shot of cookie:
