This is a discussion on How to Retrieve a Cookie Value? within the PHP Programming forums, part of the Web Development category; Hi, Any one Explain Retrieve the cookie value....
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, Any one Explain Retrieve the cookie value.
__________________ R.Sundar Raja |
|
#2
| |||
| |||
| The PHP $_COOKIE variable is used to retrieve a cookie value. In the example below, we retrieve the value of the cookie named "user" and display it on a page: <?php // Print a cookie echo $_COOKIE["user"]; // A way to view all cookies print_r($_COOKIE); ?>
__________________ R.Sundar Raja |
|
#3
| |||
| |||
| Hi, Do u have any idea to delete the client cookie in PHP?
__________________ With, J. Jeyaseelan Everything Possible |
|
#4
| |||
| |||
| When deleting a cookie you should assure that the expiration date is in the past, to trigger the removal mechanism in your browser. Examples: PHP Code:
__________________ Thanks & Regards, R.Kamalakannan. |
|
#5
| |||
| |||
| cookie mainly used in which part?
__________________ Thanks Regards Sureshbabu Harikrishnan ![]() +91 9884320017 |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Retrieve only the Nth row from a table? | santhakumar | Database Support | 6 | 11-14-2008 04:12 AM |
| All About Cookie | dharmendra2000 | Software Testing | 0 | 05-31-2008 01:32 AM |
| Retrieve mails from server | kingmaker | C# Programming | 6 | 12-14-2007 10:42 PM |
| How do I retrieve the values from the URL? | Pvinothkumar | HTML, CSS and Javascript Coding Techniques | 1 | 09-13-2007 05:30 AM |
| which method to use so that last inserted value can be retrieve. | KiruthikaSambandam | Database Support | 1 | 08-06-2007 11:13 PM |
Our Partners |