I will be creating a JQuery slide show, but need the page to refresh every 5 minutes to change the content.
I know I can do this via some Javascript, but this can be altered on the client side to avoid page refreshes. Is there a way for the server to timeout a page and force a refresh?
Open the Google Chrome browser and make sure you can access the Deep Security Manager console. Click the three vertical dots on the upper-right corner and select Settings. Select Extensions and click Get more extensions at the bottom of the page. Search for the Auto Reload Page Extension and click Add to Chrome.
Tab Auto Refresh. Tab Auto Refresh is a browser addon that helps you automatically reload (refresh) tabs of your choice. To operate with this addon, please open toolbar popup UI while you are visiting a website. Adjust time interval in seconds (i.e. 120 sec) and you are all set.
Go to the webpage, right click and select Reload Every.
In addition to a javascript reload, you can send a refresh header:
header("Refresh: 300;url='http://thepage.com/example'");
The browser will redirect after 300 seconds regardless of javascript. It can be disabled in configuration of the browser though, but it's not commonly disabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With