i have 2 pages, Login page and Contents page
--Login.php
I have a div with a message 'hi'
--Contents.php
I have a logout button, clicking on which calls a javascript function logout()
--Javascript function
function logout(){
window.location='logout.php';
}
--logout.php
header('Location:Login.php');
exit;
After clicking on logout button in Contents.php page it switches successfully to Login.php page but i am not able to update the div in Login.php page