Revision 333
Added by bojilova over 24 years ago
src/edu/ucsb/nceas/metacat/MetaCatSession.java | ||
---|---|---|
77 | 77 |
private HttpSession getSession(HttpServletRequest request, |
78 | 78 |
String username, String password) |
79 | 79 |
throws IllegalStateException { |
80 |
|
|
80 |
|
|
81 | 81 |
// get the current session object, create one if necessary |
82 | 82 |
HttpSession sess = request.getSession(true); |
83 | 83 |
// if it is still in use unvalidate and get a new one |
... | ... | |
86 | 86 |
sess = request.getSession(true); |
87 | 87 |
} |
88 | 88 |
// store username & password in the session for later use if necessary |
89 |
sess.setMaxInactiveInterval(-1); |
|
89 | 90 |
sess.putValue("username", username); |
90 | 91 |
sess.putValue("password", password); |
91 | 92 |
|
Also available in: Unified diff
added HTTPSession.setMaxInactiveInterval(-1)
for every new Session - never to expire