Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php/cookies] Nie wylogowuje na operce, jw.
tommy4
post
Post #1





Grupa: Zarejestrowani
Postów: 288
Pomógł: 12
Dołączył: 2.12.2005

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


Kawałek skryptu
  1. <?php
  2. if($user)
  3. {
  4. header("P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'");
  5. if(setcookie($settings['cookiename'], "", time() - 7200))
  6. {
  7. $user = 0;
  8. echo '<html>
  9.  <head>
  10. <meta http-equiv="refresh" content="0;url=index.php">
  11.  </head>
  12.  <body>
  13. <a href="index.php">Redirect</a>
  14.  </body>
  15. </html>';
  16. }
  17. else
  18. {
  19. echo '<html>
  20.  <head>
  21. <meta http-equiv="refresh" content="3;url=index.php">
  22.  </head>
  23.  <body>
  24. <a href="index.php">Cannot remove cookie!</a>
  25.  </body>
  26. </html>';
  27. }
  28. }
  29. ?>

Na operce pokazuje się Redirect, po czym niewylogowuje (czasami). Ktoś wie czym to jest spowodowane?

nikt nie wie?sad.gif
Go to the top of the page
+Quote Post

Posty w temacie
- tommy4   [php/cookies] Nie wylogowuje na operce   15.01.2007, 16:02:20


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: 20.08.2025 - 14:15