wyloguj.php
Kod
<? session_start();
session_destroy();
header("Location: index.php?page=wylogowano");
?>
session_destroy();
header("Location: index.php?page=wylogowano");
?>
oraz wylogowano.php
Kod
<?
echo 'Wylogowano';
?>
echo 'Wylogowano';
?>
gdy wejde na mojastrona.pl index.php?page=wyloguj
powinno mnie wylogowac, ale tak nie jest, dlaczego? (po zmianie hostingu to sie stało) na innym hostingu i localhoscie działa.