cookie to refuse revisit

From: DiMMaX (dimmax_at_nomail.com)
Date: 09/28/04

  • Next message: Lionel Valero: "Php version"
    Date: Tue, 28 Sep 2004 17:50:24 GMT
    
    

    Hey,

    I'm not sure how to explain this, but what I want to achieve is the
    following:

    I have form (written in php) which should be filled out by some invited
    people.
    I want to make sure someone can not fill out the form twice by using a
    cookie.
    However, I don't seem to find the way to do so.

    It should look something like this:

    if cookie exists then echo "you can not vote twice"
    else show form
    if form is submitted then place cookie

    (if you guys get what i mean)

    Anybody some usefull tips?

    Many thanks in advance,

    DiMMaX


  • Next message: Lionel Valero: "Php version"

    Relevant Pages

    • Re: [PHP] base64-encoding in cookies?
      ... The sender is in the driver's seat and the receiver must follow suite. ... PHP application is usually what set the cookie in the first place. ... You have control over the value you insert into the cookie. ...
      (php.general)
    • Re: [PHP] base64-encoding in cookies?
      ... PHP application is usually what set the cookie in the first place. ... $_SERVER fields are dependent on your http server. ... but my request is for documentation of the fact ...
      (php.general)
    • Re: Sessions
      ... click the link and in aoltest3.php the session variable is visable. ... Registered serializer handlers php php_binary wddx ... session.name PHPSESSID PHPSESSID ... see the PHPSESSID, in a cookie, or in the URL. ...
      (comp.lang.php)
    • Re: Cross-domain cookie updating ?
      ... It's not strictly a PHP question, but something that PHP guys would know the answer to. ... If the file being returned has updated cookie information in the response header, then I imagine the cookies for example.com get updated. ... What if the JS file it's requesting is actually to a different unrelated domain server that's going to return a JavaScript file with updated cookies in the response header. ... As far as I was aware, the only way a server can set a cookie in the response is by using server-side scripting. ...
      (comp.lang.php)
    • Re: Cross-domain cookie updating ?
      ... It's not strictly a PHP question, but something that PHP guys would know the answer to. ... If the file being returned has updated cookie information in the response header, then I imagine the cookies for example.com get updated. ... What if the JS file it's requesting is actually to a different unrelated domain server that's going to return a JavaScript file with updated cookies in the response header. ... As far as I was aware, the only way a server can set a cookie in the response is by using server-side scripting. ...
      (comp.lang.php)