Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Cookies, jak usunąć cookies ?
SET
post
Post #1





Grupa: Zarejestrowani
Postów: 75
Pomógł: 0
Dołączył: 21.07.2004

Ostrzeżenie: (0%)
-----


uzywam tej metody (niestety nie działa)
  1. <?php
  2. unset($_COOKIE[session_name('nazwa')]);
  3. ?>


chce na dobre usunąć cookies, Wie Ktoś jak to zrobić ?

thx za info,
Go to the top of the page
+Quote Post
Wankster
post
Post #2





Grupa: Zarejestrowani
Postów: 208
Pomógł: 0
Dołączył: 19.04.2003

Ostrzeżenie: (0%)
-----


http://www.php.net/manual/en/function.setcookie.php
Example 2. setcookie() delete example
  1. <?php
  2. // set the expiration date to one hour ago
  3. setcookie (&#092;"TestCookie\", \"\", time() - 3600);
  4. setcookie (&#092;"TestCookie\", \"\", time() - 3600, \"/~rasmus/\", \".example.com\", 1);
  5. ?>


Ten post edytował Wankster 4.09.2004, 23:21:39
Go to the top of the page
+Quote Post
bela
post
Post #3


Administrator PHPedia.pl


Grupa: Developerzy
Postów: 1 102
Pomógł: 2
Dołączył: 14.09.2003

Ostrzeżenie: (0%)
-----


wystarczy setcookie tylko z samą nazwą cookie


--------------------
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 10:42