On one of my websites, it took me 15 minutes to automatically refresh the web page.
To do this, I can write the following line of code
<meta http-equiv="refresh" content="60;url=" />
But I ran into one problem, which after this 15 minute page duration will be updated as a new page load.
On my page, I used a combo box that has a list of cities, there is a case when I select an item from this list in index 3. After that, I just make the page inactive and after 15 minutes the page is refreshed with a script, I write back to automatically message (mentioned above). But the problem is that because of this page, the new page and the code inside (!PostBack)execute reload , which fill the combo box and reset in index 1.
Please help me solve this problem?
My basic requirement is that whenever a user reaches this page and makes it inactive longer, the session should not expire, and therefore I write the script above so that the session is live.
source
share