mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-09 04:37:33 +08:00
Increase session timeout
This commit is contained in:
parent
cce90872fe
commit
6439ce3fa3
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user