See the setcookie() section of the PHP manual.> I am very new with php. And I want to find out how do I capture user
> cookies information for traffic ysis on Windows machine and server
> cookies from Linux server.
setcookie() will ask the user's browser to save a little file onto their
machine containing the values you specify in setcookie(), but it is
possible for the user's browser to refuse to set a cookie if the user
has turned cookies off (unlikely) or if they reject the cookie
personally (also fairly unlikely), or if your script is not the URL in
the browser's address bar (making you a third-party to the Web
transaction) recent browsers tend to reject third-party cookies (pretty
likely and increasingly so).
setcookie() must be called before any data has been sent (it's like the
If setcookie() is successful, you can then see the values your site set
(and only the values *your* site set) in the $_COOKIE variable on the
page AFTER THE PAGE THAT USES setcookie() AND NOT BEFORE. The first
cookie mistake some people make is trying to look at stored cookie
values before they've been stored.
echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "obe.uk"