Results 1 to 3 of 3

Thread: question about Cookie

Hybrid View

  1. #1
    Join Date
    Jun 2009

    question about Cookie

    If I am setting a cookie, that means php program will create a cookie on client side in some file. This cookie will be in form of some text.
    If same php program is executed for different requests from different clients, then will the same cookie be created for all different clients ? By that I mean , will all users have same cookie on their computers ?

    If not, then how is that possible ? Because its the same program which is executed and creates cookie, which should be of same value for all clients.


  2. #2
    Join Date
    Aug 2004
    It will have the same value for each client if that's what you respond with to each request, and the client's settings are configured to accept cookies from that domain. (Almost all will at least accept cookies from the same sub-domain.domain as that to which the originating HTTP request was made, but those settings are all user configurable at the client side.) As to how exactly they are stored on each client computer, that's entirely up the the client application (browser) and any configuration options that might apply to it (perhaps it encrypts or compresses them in some way?).
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Oct 2012
    It will surely have the same value.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center