PHP scripts and programs for Beginner to Master

php programs, php ready to use scripts & functions, css tutorials, html, javascripts, ajax examples for Beginner to Master

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.

I'm reading: How to Get value stored in Cookie in php ?Tweet this!

2 comments:

Since long time i have been searching this script. thank you for sharing it. php training in jaipur

Awesome posting and thanks for sharing, keep postings.......... PHP Programmers

Post a Comment