Now you have learnt to set a cookie in php. Now the next thing is to retrieve the value stored in cookie.
With the following code you can retrieve the value stored in cookie.
To get the value stored in cookie we are using global variable $_COOKIE.
Here we are getting the value stored in cookie to the variable $mycookie.
Here is full code to check & print the value of the cookie.
OBAT SKABIES
6 years ago