Index: lams_common/src/java/org/lamsfoundation/lams/web/session/SessionManager.java =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/web/session/SessionManager.java,v diff -u -r1.5 -r1.6 --- lams_common/src/java/org/lamsfoundation/lams/web/session/SessionManager.java 10 Oct 2005 04:07:38 -0000 1.5 +++ lams_common/src/java/org/lamsfoundation/lams/web/session/SessionManager.java 22 Mar 2006 11:41:12 -0000 1.6 @@ -103,6 +103,8 @@ //initialize a new one HttpSession session = getInstance().new SessionImpl(sessionId); getInstance().sessionContainer.put(sessionId,session); + // TODO remove this debugging - only put in to diagnose Ozgur's session problem + log.debug("SessionManager: creating new session "+sessionId); } /** @@ -165,6 +167,11 @@ if(cookie != null){ currentSessionId = cookie.getValue(); Object obj = getSession(currentSessionId); + // TODO remove this debugging - only put in to diagnose Ozgur's session problem + if ( log.isDebugEnabled() ) { + log.debug("SessionManager: cookie is not null, currentSessionId="+currentSessionId + +" session="+obj); + } //if cookie exist, but session does not. This usually menas seesion expired. //then delete the cookie first and set it null in order to create a new one if(obj == null){ @@ -176,6 +183,10 @@ } //can not be in else! if(cookie == null){ + // TODO remove this debugging - only put in to diagnose Ozgur's session problem + if ( log.isDebugEnabled() ) { + log.debug("SessionManager: cookie is null, generating a new session"); + } //create new session and set it into cookie currentSessionId = (String) new UUIDHexGenerator().generate(null,null); createSession(currentSessionId);