Skip to content
Advertisement

Cookie is not recognised in PHP

I get Notice: Undefined index: i during the first reload of page with cookies

JavaScript

but after 2nd reload,it’s OK.

Advertisement

Answer

The solution is to not use the $_COOKIE array, but a variable

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement