This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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
"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 ...