Revision 336
Added by bojilova over 24 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
226 | 226 |
} else if (action.equals("Logout")) { |
227 | 227 |
HttpSession sess = request.getSession(false); |
228 | 228 |
if (sess != null) { sess.invalidate(); } |
229 |
response.sendRedirect("/xmltodb/lib/login.html");
|
|
229 |
response.sendRedirect("/xmltodb/login.html"); |
|
230 | 230 |
// aware of session expiration on every request |
231 | 231 |
} else { |
232 | 232 |
HttpSession sess = request.getSession(true); |
233 | 233 |
if (sess.isNew()) { |
234 | 234 |
// session expired or has not been stored b/w user requests |
235 | 235 |
// redirect to default page for query only access |
236 |
response.sendRedirect("/xmltodb/lib/sexpire.html");
|
|
236 |
response.sendRedirect("/xmltodb/sexpire.html"); |
|
237 | 237 |
} |
238 | 238 |
} |
239 | 239 |
// End of Jivka added |
... | ... | |
299 | 299 |
return; |
300 | 300 |
} else { |
301 | 301 |
response.sendRedirect( |
302 |
response.encodeRedirectUrl("/xmltodb/lib/index.html"));
|
|
302 |
response.encodeRedirectUrl("/xmltodb/index.html")); |
|
303 | 303 |
} |
304 | 304 |
} catch ( java.io.IOException ioe) { |
305 | 305 |
sess.disconnect(); |
... | ... | |
323 | 323 |
out.println("</success>"); |
324 | 324 |
} else { |
325 | 325 |
response.sendRedirect( |
326 |
response.encodeRedirectUrl("/xmltodb/lib/metacat.html"));
|
|
326 |
response.encodeRedirectUrl("/xmltodb/metacat.html")); |
|
327 | 327 |
} |
328 | 328 |
} catch ( java.io.IOException ioe) { |
329 | 329 |
sess.disconnect(); |
Also available in: Unified diff
changed paths, b' of new dev server