PHP how often do I use Cookies?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Duane
    New Member
    • May 2008
    • 2

    PHP how often do I use Cookies?

    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?
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by Duane
    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?
    Now quite sure how you mean - give an example?

    Once a cookie is set, it is available throughout your domain (unless you set it to otherwise).

    Comment

    • Duane
      New Member
      • May 2008
      • 2

      #3
      I 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

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by Duane
        I 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
        Great!

        See you around.

        Comment

        Working...