Changeset 14539
- Timestamp:
- 2007-09-18T16:16:23+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/gsdl3/LibraryServlet.java
r14524 r14539 304 304 305 305 HttpSession session = request.getSession (true); 306 session.setMaxInactiveInterval(session_expiration); 306 307 String uid = (String)session.getAttribute (GSXML.USER_ID_ATT); 307 308 if (uid ==null) { … … 350 351 //logger.info("clear cache for the whole site."); 351 352 session_ids_table = new Hashtable(); 352 353 session.removeAttribute(GSXML.USER_SESSION_CACHE_ATT); 353 354 } else { 354 355 //clean up all cache info related to the collection … … 400 401 session_cache = new UserSessionCache(sid, param_table); 401 402 session_ids_table.put(sid, session_cache); 403 session.setAttribute(GSXML.USER_SESSION_CACHE_ATT, session_cache); 402 404 //logger.info("new session id"); 403 405 } … … 480 482 } 481 483 } 482 483 //now set the UserSessionCache object into the session with its life expectancy484 if (session_cache != null) {485 session.setAttribute(GSXML.USER_SESSION_CACHE_ATT, session_cache);486 session.setMaxInactiveInterval(session_expiration);487 }488 484 } 489 485
Note:
See TracChangeset
for help on using the changeset viewer.