When using cookies, is the setcookie(); code entered on every page the info will be retrieved and/or sent by the user? - or just once, on the page where the info is originated?
PHP how often do I use Cookies?
Collapse
X
-
Originally posted by DuaneWhen using cookies, is the setcookie(); code entered on every page the info will be retrieved and/or sent by the user? - or just once, on the page where the info is originated?
Once a cookie is set, it is available throughout your domain (unless you set it to otherwise). -
Originally posted by DuaneI have a form I am trying to send values across multiple pages, I needed to know if the setcookie() should be on every page values are to be displayed or used in the script.
Although, you have answered my question. Thanks
See you around.Comment
Comment