Hi, I know that you can set in the web.xml the session time-out. However, it refers to idle-time. Is there a way to set the session to be a set amount of time, for example give someone10 min to answer a quiz? Thanks, RK
You would have to implement that in your own code - create an initial timestamp, etc. stored in the session - you could then have an independent timing thread that would control a separate collection of references to the session objects. When the time was up you could invalidate the session. Bill
Joined: Feb 05, 2002
Thanks, I just compared the session time to the current time and it produced the required results. RK
"Aussie Developer", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp. We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements. Thanks. Dave ps: which coast you on?
Joined: Nov 22, 2008
Hi Dave My apologies, re Aussie Developer. Anyway, I live and work on the East Coast - Brisbane. cheers Gav ...