Hello!
I have a problem. I don´t know if htere are in php a function as getcookie (in perl). Anybody known it?? I need is know because I need to receive a cookie from other server that it is diferent that mine. (My server change to be a client in a moment). HELP!!
PD: Pardon for my english. Thanks.
Dani
export cookies
Moderator: General Moderators
- protokol
- Forum Contributor
- Posts: 353
- Joined: Fri Jun 21, 2002 7:00 pm
- Location: Cleveland, OH
- Contact:
Well, to set a cookie, you would use the setcookie() function. To retrieve a cookie you would use the $_COOKIE array.
This code shows what the $_COOKIE array is comprised of (if anything)
Not sure how to get a cookie set by a different server though.
This code shows what the $_COOKIE array is comprised of (if anything)
Code: Select all
<?php
foreach ($_COOKIE as $cookie=>$value)
echo "$cookie = $value<br />";
?>
Last edited by protokol on Wed Jul 17, 2002 7:09 pm, edited 1 time in total.