www.webdeveloper.com
Results 1 to 2 of 2

Thread: unset cookies using php

  1. #1
    Join Date
    May 2006
    Posts
    141

    Thumbs up unset cookies using php

    Hai friends

    I need one clarification for cookies . How to distroy the cookies using php .
    Please help me

    Thanks
    vssp

  2. #2
    Join Date
    Oct 2005
    Location
    Gold Coast, Australia
    Posts
    2,115
    To delete a cookie set the expiration date in the past, this will trigger the clients browser removal mechanism:
    PHP Code:
    <?php
    // set the expiration date to one hour ago
    setcookie ("TestCookie"""time() - 3600);
    ?>

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



Recent Articles