Asp.net Session state
-
Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!
-
Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!
Before answer you let me ask some questions... Why keep the session alive? Do you know how much it costs - in resources - to keep all your sessions alive? Did you checked all the alternatives to live-forever-session? I believe that after answering these question you will no ask the original question anymore...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
-
Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!
The timer control relies on javascript, so if javascript is not enabled, the timer won't work either.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!
1. As already pointed out the timer control will use javascript. The only way to send something back to the server without a full postback is to use javascript so you'll have to. 2. Every 5 seconds? That is way overkill. If your session is set to the default of 30 minutes then send a keep-alive message every 20 or 25 minutes, not every 5 seconds.
There are only 10 types of people in the world, those who understand binary and those who don't.
-
1. As already pointed out the timer control will use javascript. The only way to send something back to the server without a full postback is to use javascript so you'll have to. 2. Every 5 seconds? That is way overkill. If your session is set to the default of 30 minutes then send a keep-alive message every 20 or 25 minutes, not every 5 seconds.
There are only 10 types of people in the world, those who understand binary and those who don't.
Ok. Get it now. Thanks alot!
-
Ok. Get it now. Thanks alot!
-
The timer control relies on javascript, so if javascript is not enabled, the timer won't work either.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Ok. Get it now. Thanks alot!
-
Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!
Increase session timelength and change it's mode
Sankarsan Parida