diff options
author | jcardus <asklocation.net@gmail.com> | 2021-07-06 21:54:48 +0100 |
---|---|---|
committer | jcardus <asklocation.net@gmail.com> | 2021-07-06 21:54:48 +0100 |
commit | 1ec2196ddcc778cb3d4ef220a18f97165f4a175a (patch) | |
tree | 6d88b62a990cf64f0cff718514b0e93e921374eb /src | |
parent | c82a19b1943f8784d5c10ece50ffab06d0596020 (diff) | |
download | trackermap-server-1ec2196ddcc778cb3d4ef220a18f97165f4a175a.tar.gz trackermap-server-1ec2196ddcc778cb3d4ef220a18f97165f4a175a.tar.bz2 trackermap-server-1ec2196ddcc778cb3d4ef220a18f97165f4a175a.zip |
I wasn't ve happy with the name myself...
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 4 | ||||
-rw-r--r-- | src/main/java/org/traccar/web/WebServer.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index c542b7099..ef0edbac3 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -1201,8 +1201,8 @@ public final class Keys { /** * Enables persisting Jetty session to the database */ - public static final ConfigKey<Boolean> WEB_SESSION_PERSISTED = new ConfigKey<>( - "web.sessionPersisted", + public static final ConfigKey<Boolean> WEB_PERSIST_SESSION = new ConfigKey<>( + "web.persistSession", Collections.singletonList(KeyType.GLOBAL)); /** diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java index 0157c075c..604edfedc 100644 --- a/src/main/java/org/traccar/web/WebServer.java +++ b/src/main/java/org/traccar/web/WebServer.java @@ -178,7 +178,7 @@ public class WebServer { } private void initSessionConfig(Config config, ServletContextHandler servletHandler) { - if (config.getBoolean(Keys.WEB_SESSION_PERSISTED)) { + if (config.getBoolean(Keys.WEB_PERSIST_SESSION)) { DatabaseAdaptor databaseAdaptor = new DatabaseAdaptor(); databaseAdaptor.setDatasource(Context.getDataManager().getDataSource()); JDBCSessionDataStoreFactory jdbcSessionDataStoreFactory = new JDBCSessionDataStoreFactory(); |