Application A has Filter which checks if user is already logged in. If not it redirects user to application for logging in (app B). This solution is based on the fact that session id is the same. In wildfly 8.0 CR1 for some reason redirect to application B changes session id. The same thing happens when user will be authenticated in app B and then is again redirected to app A. It looks like there is some problem with cookies, but I'm not sure (app A and B are on the same app server). It is working in jboss 7.1.1.