Skip to content

Commit

Permalink
Merge pull request #267 from GoogleCloudPlatform:SessionCacheConfigur…
Browse files Browse the repository at this point in the history
…ation

PiperOrigin-RevId: 670944612
Change-Id: I159cda26f47419b3d941c1817f32e3cab5d7a7f3
  • Loading branch information
gae-java-bot committed Sep 4, 2024
2 parents 1e88272 + e02a10a commit 791338b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ private static class AppEngineNullSessionCache extends NullSessionCache {
super(handler);
// Saves a call to the SessionDataStore.
setSaveOnCreate(false);
setFlushOnResponseCommit(true);
setRemoveUnloadableSessions(false);
}

Expand Down Expand Up @@ -264,6 +265,7 @@ private static class AppEngineSessionCache extends NullSessionCache {
AppEngineSessionCache(SessionHandler handler) {
super(handler);
setSaveOnCreate(true);
setFlushOnResponseCommit(true);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ private static class AppEngineNullSessionCache extends NullSessionCache {
super(handler.getSessionManager());
// Saves a call to the SessionDataStore.
setSaveOnCreate(false);
setFlushOnResponseCommit(true);
setRemoveUnloadableSessions(false);
}

Expand Down Expand Up @@ -264,6 +265,7 @@ private static class AppEngineSessionCache extends NullSessionCache {
AppEngineSessionCache(SessionHandler handler) {
super(handler.getSessionManager());
setSaveOnCreate(true);
setFlushOnResponseCommit(true);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ private static class AppEngineNullSessionCache extends NullSessionCache {
super(handler);
// Saves a call to the SessionDataStore.
setSaveOnCreate(false);
setFlushOnResponseCommit(true);
setRemoveUnloadableSessions(false);
}

Expand Down Expand Up @@ -278,6 +279,7 @@ private static class AppEngineSessionCache extends NullSessionCache {
AppEngineSessionCache(SessionHandler handler) {
super(handler);
setSaveOnCreate(true);
setFlushOnResponseCommit(true);
}

@Override
Expand Down

0 comments on commit 791338b

Please sign in to comment.