In php, how to use cookie and get the value of cookie in same program?. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 18

In php, how to use cookie and get the value of cookie in same program?.

<?php set cookie(); isset($_COOKIE[]); echo $_COOKIE[]; ?> Give the example...

31st May 2018, 3:49 PM
madhina
madhina - avatar
2 Answers
+ 12
thanks for answer.. I will work out this!..
31st May 2018, 5:22 PM
madhina
madhina - avatar
+ 2
try by adding js <script>alert(document.cookie)</script>
31st May 2018, 4:51 PM
Sudarshan Rai
Sudarshan Rai - avatar