<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">There are 2 things here. Adding
"persistent-sessions" is needed to ensure that HTTP sessions of
the applications, which are secured by Keycloak, will remain
persistent. But Keycloak auth-server itself doesn't rely on Http
sessions. So you also need to switch UserSession provider in
keycloak-server.json to either 'jpa' or 'mongo' . Default provider
is 'mem', which stores UserSessions just in memory and this
doesn't support server restarts. With JPA or Mongo, UserSessions
will be persistent, on the other hand there is performance penalty
as each login,logout or refresh token will need to load and save
user sessions data in DB.<br>
<br>
From 1.1.X there is also infinispan UserSession provider, which is
not persistent by default, but you can use some infinispan addons
(CacheStores/CacheLoaders) to ensure data are persistent.<br>
<br>
Also note that upgrade from 1.0.X to 1.1.X will also drop existing
UserSessions even if you have 'jpa' or 'mongo' as there is some
change in format of UserSessions. But upgrade between minor
versions (like from 1.0.3 to 1.0.4) will probably work for you.<br>
<br>
Marek<br>
<br>
On 11.11.2014 01:52, Alarik Myrin wrote:<br>
</div>
<blockquote
cite="mid:CAKTx7M6yRMBXNoew-pNVqa=DPj+14iR9XEz7abbUBX2xNJR2Zw@mail.gmail.com"
type="cite">
<div dir="ltr">When upgrading keycloak, I recently faced the
problem that the upgrade would essentially invalidate all the
current user sessions. Has anyone had any luck with using
the <persistent-sessions/> tag in the wildfly Undertow web
subsystem to try and have user sessions survive a server
restart?
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>