Revision 2589
Added by sgarg over 18 years ago
AuthSession.java | ||
---|---|---|
122 | 122 |
|
123 | 123 |
// if it is still in use invalidate and get a new one |
124 | 124 |
if ( !session.isNew() ) { |
125 |
MetaCatUtil.debugMessage("in session is not new", 40);
|
|
126 |
MetaCatUtil.debugMessage("the old session id is : " +
|
|
127 |
session.getId(), 30);
|
|
128 |
MetaCatUtil.debugMessage("the old session username : " +
|
|
129 |
session.getAttribute("username"), 30);
|
|
125 |
MetaCatUtil.logMetacat.info("in session is not new");
|
|
126 |
MetaCatUtil.logMetacat.info("the old session id is : " +
|
|
127 |
session.getId()); |
|
128 |
MetaCatUtil.logMetacat.info("the old session username : " +
|
|
129 |
session.getAttribute("username")); |
|
130 | 130 |
session.invalidate(); |
131 |
MetaCatUtil.debugMessage("in session is not new", 40);
|
|
131 |
MetaCatUtil.logMetacat.info("in session is not new");
|
|
132 | 132 |
session = request.getSession(true); |
133 | 133 |
} |
134 | 134 |
// store the username, password, and groupname (the first only) |
... | ... | |
139 | 139 |
if ( groups.length > 0 ) { |
140 | 140 |
session.setAttribute("groupnames", groups); |
141 | 141 |
} |
142 |
MetaCatUtil.debugMessage("the new session id is : " +
|
|
143 |
session.getId(), 30);
|
|
144 |
MetaCatUtil.debugMessage("the new session username : " +
|
|
145 |
session.getAttribute("username"), 30);
|
|
142 |
MetaCatUtil.logMetacat.info("the new session id is : " +
|
|
143 |
session.getId()); |
|
144 |
MetaCatUtil.logMetacat.info("the new session username : " +
|
|
145 |
session.getAttribute("username")); |
|
146 | 146 |
return session; |
147 | 147 |
} |
148 | 148 |
|
Also available in: Unified diff
Replacing debugMessage in metacat code with log4j methods for logging