I noticed that when i am on your site, it refreshes itself automatically after every couple of minutes. my impression is that you are trying to make a session variable last longer. Or i am i wrong? my question is: how do i refresh a page without interrupting the user? I need to keep the user's session active as long as the browser is open but i would not wish to set a constant value like 20min
best! MICAH
Reply from Richard Rost:
Yes, you are correct. There is a very small inline frame at the bottom of my site that refreshes once a minute. I do this so people don't get timed out. That was the number one complaint I used to get: people would log on, watch lesson 1, 2, 3, and then go get coffee or lunch and come back 30 minutes later only to be logged out. So the refresh frame reloading every minute will keep you logged on as long as your browser window is open.
It's literally just an HTML IFRAME with a little bit of Javascript to reload the frame. If you right-click on my copyright notice at the bottom and select VIEW FRAME SOURCE you should see the HTML for it. It's not hard.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Active Server Pages Forum.
The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.