Revision 6545
Added by ben leinfelder about 13 years ago
index.jsp | ||
---|---|---|
41 | 41 |
// look up the username from the given session |
42 | 42 |
String sessionId = request.getParameter("sessionId"); |
43 | 43 |
if (sessionId == null) { |
44 |
sessionId = request.getSession().getId(); |
|
44 |
if (request.getSession() != null) { |
|
45 |
sessionId = request.getSession().getId(); |
|
46 |
} |
|
45 | 47 |
} |
46 |
if (sessionId == null) { |
|
48 |
if (sessionId == null || !SessionService.getInstance().isSessionRegistered(sessionId)) {
|
|
47 | 49 |
// redirect to the login page |
48 | 50 |
response.sendRedirect(STYLE_SKINS_URL + "/dev/login.html"); |
49 | 51 |
return; |
Also available in: Unified diff
correctly check that user is logged into metacat before proceeding