Nov 8, 2009

How To Remove A Cookie Using PHP

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

How To Remove A Cookie Using PHP

Bio
Hi :-)

How can i remove a cookie from $_COOKIES array ?

P.S.: sorry it there is any mistakes in my english :-)


Notice from miCRoSCoPiC^eaRthLinG:
Topic title edited to suit the nature of content better. In future try to make your topic title more descriptive.

Comment/Reply (w/o sign-up)

Bio
Well, here is the solution at last:

CODE
setcookie("var_name","",time() - 60*60);

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : remove, cookie, php

  1. Php Forum Cookies
    I need help on a php forum cookie. All suggestions welcome. (3)
  2. Help: Removing A Specific Header With cURL
    (0)
    Hi all, I' ve problem sending HTTP POST(multipart/form-data) request using CURL. The server
    always reply with HTTP/1.1 417 Expectation Failed . Then I review my code and the tcp packet using
    wireshark for long long time /sad.gif" style="vertical-align:middle" emoid=":(" border="0"
    alt="sad.gif" /> just to figure out where is the error!. This problem only for one site and for the
    others site my script works perfectly!. here is my packet that sent to the server CODE POST
    xxxxxxxx HTTP/1.1 Cookie: PHPSESSID=447c6f5c9e73c22a1bf50dd46940306e Host: www.xxxxxxxxxx....
  3. Need Help - How To Remove Session ID From URL
    (6)
    Oflate I was going through Google information for webmasters and I noticed the following technical
    guideline for the webmasters: QUOTE Allow search bots to crawl your sites without session IDs or
    arguments that track their path through the site. These techniques are useful for tracking
    individual user behavior, but the access pattern of bots is entirely different. Using these
    techniques may result in incomplete indexing of your site, as bots may not be able to eliminate URLs
    that look different but actually point to the same page. It clearly shows that undesir....
  4. How To Use Cookie In Your Web Site ?
    this semple code to use and get cookie (1)
    what is the cookie ? the cookis it is some info sent and save in user computer whare i can use the
    cookies? becouse the cookies it like the header you can not send it after any output wes sent so
    you must send the cookies before any output like as ,echo and any other code i well make an E.X.
    to use the cookies you must have 2 file index.php update.php ---------- in the index.php add this
    code CODE    // This section must go at the top of the page that will display    // the
    users favorites.  These are the 'default' URLs that the user    // will se....

    1. Looking for remove, cookie, php

See Also,

*SIMILAR VIDEOS*
Searching Video's for remove, cookie, php
advertisement



How To Remove A Cookie Using PHP

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com