[thelist] JavaScript call form submit

Jeff jeff at members.evolt.org
Mon May 22 03:38:40 2000


tim,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Tim Stewart <tstewart@gisca.adelaide.edu.au>
:
: <<why not just have a script that runs serverside
: that cleans up any user session that is older than
: the specified session time limit.>>
:
: I had been considering timestamping the server session
: objects and doing a periodic clearout, but this method is a
: little vague for my liking - a question of finding a compromise
: between conserving server system resources and allowing
: users to gaze at pages for as long as they like without being
: rudely disconnected.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

i think you're waging a gamble that is much too risky by relying on
javascript to kill sessions on the server.  that would be what is considered
venturing into using javascript for things that are mission critical.
instead, clear the sessions after a given time of inactivity and develop a
client-side method with which to lengthen that time, if necessary.
lengthening sessions is as easy as swapping an image with the image path
being to a serverside template that returns a content type for a new image.
the server sees activity for that session and nothing changes on the page
for the user.  user leaves the site or closes their browser and their
session eventually times out.  everyone is happy.

just my 2¢,

.jeff

name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff@members.evolt.org