@ -18,8 +18,8 @@ public class SqliteSessionService extends SqliteStore implements SessionService
@@ -18,8 +18,8 @@ public class SqliteSessionService extends SqliteStore implements SessionService
privatestaticfinalStringSELECT_STORE_VERSION="SELECT * FROM metainfo WHERE key = '"+STORE_VERSION+"'";
privatestaticfinalStringSET_STORE_VERSION="UPDATE metainfo SET value = ? WHERE key = '"+STORE_VERSION+"'";
privatestaticfinalStringCREATE_SESSION_TABLE="CREATE TABLE sessions (id VARCHAR(64) PRIMARY KEY, userId VARCHAR(64) NOT NULL, expiration LONG NOT NULL)";
privatestaticfinalStringSAVE_SESSION="INSERT INTO sessions (id, userId, expiration) VALUES (?,?,?) ON CONFLICT DO UPDATE SET expiration = ?;";
privatestaticfinalStringCREATE_SESSION_TABLE="CREATE TABLE sessions (id VARCHAR(64) PRIMARY KEY, userId VARCHAR(64) NOT NULL, expiration LONG NOT NULL, trust_browser BOOLEAN DEFAULT false)";
privatestaticfinalStringSAVE_SESSION="INSERT INTO sessions (id, userId, expiration, trust_browser) VALUES (?,?,?, ?) ON CONFLICT DO UPDATE SET expiration = ?, trust_browser = ?;";
privatestaticfinalStringDROP_SESSION="DELETE FROM sessions WHERE id = ?";
privatestaticfinalStringSELECT_SESSION="SELECT * FROM sessions WHERE id = ?";
@ -28,10 +28,10 @@ public class SqliteSessionService extends SqliteStore implements SessionService
@@ -28,10 +28,10 @@ public class SqliteSessionService extends SqliteStore implements SessionService