Increase session timeout

This commit is contained in:
Anton Tananaev 2013-04-15 21:32:28 +12:00
parent cce90872fe
commit 6439ce3fa3
2 changed files with 9 additions and 1 deletions

View File

@ -108,7 +108,11 @@ public class DataServiceImpl extends RemoteServiceServlet implements DataService
private User getSessionUser() {
HttpSession session = getThreadLocalRequest().getSession();
return (User) session.getAttribute(ATTRIBUTE_USER);
User user = (User) session.getAttribute(ATTRIBUTE_USER);
if (user == null) {
throw new IllegalStateException();
}
return user;
}
@Override

View File

@ -18,5 +18,9 @@
<welcome-file-list>
<welcome-file>traccar.html</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>0</session-timeout>
</session-config>
</web-app>