I want to refresh all pages if my session is destroyed from any of the page by clicking log-out.
Maybe something like this:
$_SERVER = this is to complete the address,
If your address is http://www.mypageiscool.com/page.php
$_SERVER = page.php
$_SERVER = http://www.mypageiscool.com/
One simple option I can think of is doing a simple AJAX request every 5-20 seconds that would check the session and return false or something if it’s destroyed, you can then refresh the page via jQuery.
@chrisxClash:- Can You help me to give the demo of what you have told
You must be logged in to reply to this topic.