// SSO. If the session was logged out, we'll log out
// of all session associated with the SSO.
if (((session.getMaxInactiveInterval() > 0)
- && (System.currentTimeMillis() - session.getLastAccessedTimeInternal() >=
+ && (System.currentTimeMillis() - session.getThisAccessedTimeInternal() >=
session.getMaxInactiveInterval() * 1000))
|| (Session.SESSION_PASSIVATED_EVENT.equals(event.getType()))) {
removeSession(ssoId, session);
/**
* Session information for the web application at the specified context path.
- * Displays a profile of session lastAccessedTime listing number
+ * Displays a profile of session thisAccessedTime listing number
* of sessions for each 10 minute interval up to 10 hours.
*
* @param writer Writer to render to
int expired = 0;
long now = System.currentTimeMillis();
for (int i = 0; i < sessions.length; i++) {
- int time = (int)((now-sessions[i].getLastAccessedTimeInternal())/1000);
+ int time = (int)((now-sessions[i].getThisAccessedTimeInternal())/1000);
if (idle >= 0 && time >= idle*60) {
sessions[i].expire();
idle++;
/**
* Session information for the web application at the specified context path.
- * Displays a profile of session lastAccessedTime listing number
+ * Displays a profile of session thisAccessedTime listing number
* of sessions for each 10 minute interval up to 10 hours.
*
* @param writer Writer to render to
public static long getUsedTimeForSession(Session in_session) {
try {
- long diffMilliSeconds = in_session.getLastAccessedTime() - in_session.getCreationTime();
+ long diffMilliSeconds = in_session.getThisAccessedTime() - in_session.getCreationTime();
return diffMilliSeconds;
} catch (IllegalStateException ise) {
//ignore: invalidated session
public static long getTTLForSession(Session in_session) {
try {
- long diffMilliSeconds = (1000*in_session.getMaxInactiveInterval()) - (System.currentTimeMillis() - in_session.getLastAccessedTime());
+ long diffMilliSeconds = (1000*in_session.getMaxInactiveInterval()) - (System.currentTimeMillis() - in_session.getThisAccessedTime());
return diffMilliSeconds;
} catch (IllegalStateException ise) {
//ignore: invalidated session
public static long getInactiveTimeForSession(Session in_session) {
try {
- long diffMilliSeconds = System.currentTimeMillis() - in_session.getLastAccessedTime();
+ long diffMilliSeconds = System.currentTimeMillis() - in_session.getThisAccessedTime();
return diffMilliSeconds;
} catch (IllegalStateException ise) {
//ignore: invalidated session
if (!session.isValid())
continue;
int timeIdle = // Truncate, do not round up
- (int) ((timeNow - session.getLastAccessedTime()) / 1000L);
+ (int) ((timeNow - session.getThisAccessedTime()) / 1000L);
if (timeIdle > maxIdleSwap && timeIdle > minIdleSwap) {
if (log.isDebugEnabled())
log.debug(sm.getString
for (int i = 0; i < sessions.length && toswap > 0; i++) {
synchronized (sessions[i]) {
int timeIdle = // Truncate, do not round up
- (int) ((timeNow - sessions[i].getLastAccessedTime()) / 1000L);
+ (int) ((timeNow - sessions[i].getThisAccessedTime()) / 1000L);
if (timeIdle > minIdleSwap) {
if(log.isDebugEnabled())
log.debug(sm.getString
if (!session.isValid())
continue;
int timeIdle = // Truncate, do not round up
- (int) ((timeNow - session.getLastAccessedTime()) / 1000L);
+ (int) ((timeNow - session.getThisAccessedTime()) / 1000L);
if (timeIdle > maxIdleBackup) {
if (log.isDebugEnabled())
log.debug(sm.getString
int maxInactiveInterval = session.getMaxInactiveInterval();
if (maxInactiveInterval >= 0) {
int timeIdle = // Truncate, do not round up
- (int) ((timeNow - session.getLastAccessedTime()) / 1000L);
+ (int) ((timeNow - session.getThisAccessedTime()) / 1000L);
if (timeIdle >= maxInactiveInterval)
return true;
}