php script tarayıcıda yeniler yok

0 Cevap php

Ben şu php kodu var:

<?php session_start();
....
$result=$db->query($query);
$row=$result->fetch_assoc();
$_SESSION['id']=$row['id'];
header('Location: http://www.blabla.com/successLoginPage.php');

successLoginPage.php: php kodu

<?php session_start();
echo $_SESSION['id'];

İşte sorundur. I bütün şeyler, ben yaklaşık 10 dakika sonra ben sayfayı yenileyin ve doğru değişken görmek, successLoginPage.php hiçbir şey bkz. Ben önbellek, ctrl + f5, kapatma tarayıcı ve bilgisayar temizlemek için çalıştı, ama hiçbir şey değişmez - Hala 10 dakika beklemeniz gerekir. Bu sorun, krom ve ie8 var olduğunu.

Nasıl bu sorunu çözebilir?

Şimdiden teşekkürler.

* Düzenleme 1:

I add logout.php page with the following code: session_start();session_destroy();unset($_SESSION); When i log in successfully and receive the proper echo, i push logout link and then log in using another account - all great. 1st question - can i log in via 1st account for the 1st time and via 2nd account for the 2nd time? Is this ok? 2nd question - when i failed to log in, there again i see freeze. If i try to log in with proper account after this, i will see old information about fail login. What i need to do?

0 Cevap