5 Comments Already

commenter
DrPizza Said,
May 10th, 2008 @2:06 pm  

Surely the simplest and best solution is to just refresh less often when idle and buy a server that can cope with 1 refresh every 20 minutes from all the idle sessions? It might be worth making sessions last longer (session state can be dumped into a database anyway, and hard disks are cheap) so that refreshes can be more infrequent, but that’s a minor detail.

commenter
Aaron Said,
May 10th, 2008 @3:22 pm  

DrPizza — detecting idle is the tricky part — it’s too bad that the browser can’t natively provide that information efficiently.

Big enterprise class SAN hard disks are anything but cheap — but I’d definitely agree that just making the thing scale better (maybe caching, more RAM, etc.) would be better than making the user understand the concept of Session.

commenter
DrPizza Said,
May 10th, 2008 @4:40 pm  

“idle” for the purposes of a web page is surely easy? It’s idle if there are no clicks on the page and no typing, both of which are (in principle) fairly easily trappable.

Either way, expiring users’ sessions is terrible.

commenter
June 5th, 2008 @1:46 pm  

I agree with DrPizza, but having to build that idle code and restarting the counter every time is a pain.

Is there any benefit to and SPI? It might be good for enterprises, then you throw in the fact that only a few developers can work on it, and you screwed.

commenter
Aaron Said,
June 6th, 2008 @8:02 pm  

If you’re “in” to the principles of one GIANT page — then SPI probably fits — but I certainly don’t buy into it — feels like the wrong way to go for nearly any web application.
Thanks for your comments! :)

Related Post

Please Leave Your Comments Below

Please Note: All comments are moderated, so it may take some time before your comment appears.