Hi,

Just to mention that the JavaScript in XTile was originally used precisely for this purpose -- keeping the session alive in some pages.

I was planning to put up a special Timeout component using XTile that produces alert messages a certain amount of time before the session expires. The alerts allow you to continue the session in the background if you are doing some work such filling in a form, or the session will silenly expire if you are not around. I hope I will manage to get around that in the next few days...


Jonathan O'Connor wrote:

How about using Mindbridge's new XTile component. Whenever a user moves to a new input field on the page, call the XTile listener in your server. This will automatically reset the session timeout. Or you could do when the user moves to a new question. This Ajax stuff is very clever, isn't it!
Ciao,
Jonathan O'Connor
XCOM Dublin




Shing Hing Man <[EMAIL PROTECTED]> 07/04/2005 15:07
Please respond to
"Tapestry users" <[email protected]>



To Tapestry users <[email protected]> cc

Subject
Re: Keeping the session alive [auf Viren geprueft]






Have you looked at the method HttpSession.setMaxInactiveInterval ?

If I remember correctly, the method HttpSession.setMaxInactiveInterval(int
interval) overrides the session timeout set in
web.xml.


If you can distinquish whether the request is for a
quiz or form, you could set the session time out
accordingly.

Shing


--- Todd O'Bryan <[EMAIL PROTECTED]> wrote:


Is there any way to keep a session alive while users
fill out a form that could take a long time? I have the session set
to expire after 10 minutes, but my students could be doing an online
quiz that takes longer. Is there an easy way to re-activate the
session or something after students submit their quiz?


Thanks,
Todd





---------------------------------------------------------------------


To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]





Home page : http://uk.geocities.com/matmsh/index.html

Send instant messages to your online friends http://uk.messenger.yahoo.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]








-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 4/6/2005


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to