Ticket #1422 (closed defect: fixed)
ApplicationServlet: Tries to close application when session is expired, code is never reached
| Reported by: | Jani Laakso | Owned by: | Joonas Lehtinen |
|---|---|---|---|
| Priority: | undefined | Milestone: | User Interface Library 5.2.0 RC |
| Component: | Server-side framework | Version: | 4.1.0 |
| Keywords: | Cc: | ||
| Known Issue description: | |||
| Hours estimate: | Deadline (dd.mm.yyyy): | ||
| Known Issue version (since): | Known Issue title: | ||
| Hours done: | Depends to: | ||
| Affects documentation: | no | ||
| Known Issue workaround: | |||
| Affects release notes: | yes | Contract: | |
Description
Remove
private static HashMap applicationToLastRequestDate = new HashMap();
And other related code, such as below:
This code is never run, because Session expiration is handled by Servlet Container, not Toolkit applicaiton itself.
// Session expiration
Date lastRequest;
synchronized (applicationToLastRequestDate) {
lastRequest = (Date) applicationToLastRequestDate
.get(application);
}
if (lastRequest != null
&& lastRequest.getTime()
+ request.getSession()
.getMaxInactiveInterval() * 1000 < System
.currentTimeMillis()) {
// Session expired, close application
application.close();
}
Change History
Note: See
TracTickets for help on using
tickets.
