org.sakaiproject.tool.assessment.ui.web.session
Class SessionUtil
java.lang.Object
org.sakaiproject.tool.assessment.ui.web.session.SessionUtil
public class SessionUtil
- extends Object
SessionUtil provides a mechanism to assign the inactive
interval for the current session. In the event that user has more than one
thread accessing the same or separate assessments, SessionUtil
guarantees that the session will have the (maximum assessment time limit among threads)
as the value of the inactive interval.
Scenarios which require a greater inactive interval than the default interval:
- Assessments or surveys which are delivered on a single page
- Questions which require more time than the default application timeout setting
- Version:
- $Revision: 59684 $
- Author:
- Jarrod Lannan
- See Also:
HttpSession,
HttpSession.setMaxInactiveInterval(int)
|
Method Summary |
static void |
setSessionTimeout(javax.faces.context.FacesContext context,
DeliveryBean delivery,
boolean beginAssessment)
Sets the current HttpSession maxInactiveInterval value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXTERNAL_APP_INTERVAL
public static final String EXTERNAL_APP_INTERVAL
- See Also:
- Constant Field Values
HOURS_TO_SECONDS_MULTIPLIER
public static final int HOURS_TO_SECONDS_MULTIPLIER
- See Also:
- Constant Field Values
MINUTES_TO_SECONDS_MULTIPLIER
public static final int MINUTES_TO_SECONDS_MULTIPLIER
- See Also:
- Constant Field Values
DEFAULT_APP_INTERVAL_VAL
public static final int DEFAULT_APP_INTERVAL_VAL
- See Also:
- Constant Field Values
SessionUtil
public SessionUtil()
setSessionTimeout
public static void setSessionTimeout(javax.faces.context.FacesContext context,
DeliveryBean delivery,
boolean beginAssessment)
- Sets the current
HttpSession maxInactiveInterval value
- Parameters:
context - the faces contextdelivery - the delivery beanbeginAssessment - true if called from the beginning of an assessment, otherwise false- See Also:
DeliveryBean
Copyright © 2005-2012 Sakai Project. All Rights Reserved.