----- Original Message -----
From: "Chakka, Sudheer" <[EMAIL PROTECTED]>
How to handle the timed user's sessions without loosing the data the
user
has entered??
----------------------------

One approach I'm probably going to try out in a site I'm currently
building is to have a 'session timer'. The idea runs like this at the
moment:

- Build the site using two frames, a thin horizontal one across the top
or bottom, and the rest is the site itself.
- In the thin frame, have a JS counter counting the time down from the
current session timeout value (scripts like this should be 2-a-penny on
the web, if not piss easy to write).
- Have a button in there that refreshes just that frame, resetting the
counter and of course resetting the session with a request to the server
(but without affecting the main site frame).
- Now say the user's been typing away without looking at the timer.
Maybe set it to flash on and off when it gets to the last 20 seconds or
so? Resurrect the BLINK tag? ;-)
- Anyway, if the counter reaches 0, either they've ignored the countdown
or they've gone to do something else. The counter reaching zero could
bring a JS alert that tells the user to make sure they've copy/pasted
stuff in the current form outside their browser, cos the session's timed
out and next time they click on anything they'll be redirected to the
login page and lose all their stuff. A JS alert should ensure they read
the warning before doing anything else.

Seems like it should work nicely, but as I've said, I've not got round
to implementing it yet. I usually avoid frames like the plague, but this
will be for a CMS that's private anyway, so the bookmarking problem
doesn't apply. Plus, can't think of another solution.

Let me know if you try it!

- Gyrus

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
- PGP key available
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to