Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z cookie
bela
post 30.06.2004, 16:42:06
Post #1


Administrator PHPedia.pl


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

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


  1. <?php
  2. header(&#092;"Content-type: text/html; charset=iso-8859-2\");
  3. require_once(&#092;"news/config.php\");
  4.  
  5. if(($_POST['login'] == $news_user && $_POST['pass'] == $news_pass) || isset($_COOKIE['login'])) {
  6. setcookie(&#092;"login\",\"\", 3600);
  7.  
  8. if($_GET[&#092;"id\"] == \"\" || $_GET[\"id\"] == \"menu\") {
  9. $inc = &#092;"news/main.php\";
  10. } else if($_GET[&#092;"id\"] == \"addnews\") {
  11. $inc = &#092;"news/addnews.php\";
  12. } else if($_GET[&#092;"id\"] == \"changenews\") {
  13. $inc = &#092;"news/changenews.php\";
  14. } else {
  15. $inc = &#092;"news/404.php\";
  16. }
  17. } else {
  18. $inc = &#092;"news/login.php\";
  19. }
  20. ?>


czemu nie ustawiają się ciasteczka?
próbowałem na innym serwerze też to samo, z inną przeglądarką również bez rezultatu


--------------------
Go to the top of the page
+Quote Post
switch
post 30.06.2004, 21:08:50
Post #2





Grupa: Zarejestrowani
Postów: 55
Pomógł: 0
Dołączył: 19.08.2003

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


Zasadniczo to sądzę, ze cookie powinny być zdefiniowane zanim określisz nagłówek a u Ciebie jest pod nagłówkiem
Go to the top of the page
+Quote Post
bela
post 30.06.2004, 23:53:54
Post #3


Administrator PHPedia.pl


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

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


ale probowałem z ob_start i ob_end_flush i nic


--------------------
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 Wersja Lo-Fi Aktualny czas: 19.07.2025 - 17:18