![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programmer
|
deal with cookies
its an easy question i have a cookie inserted and i want to delete it , how can i make that
![]() thanks very much |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Oct 2005
Posts: 134
Rep Power: 4
![]() |
Direct from the PHP Manual:
When deleting a cookie you should assure that the expiration date is in the past, to trigger the removal mechanism in your browser. Examples follow how to delete cookies sent in previous example: Example 2. setcookie() delete example [php] <?php // set the expiration date to one hour ago setcookie ("TestCookie", "", time() - 3600); ?> [/php] |
|
|
|
|
|
#3 |
|
Programmer
|
i did that but it didnt work
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|