So, I have a web application that uses jsf and primefaces to represent the front end.
We use Spring Security for the login mechanism and define concurrency as such
<session-management session-fixation-protection="newSession">
<concurrency-control max-sessions="1" error-if-maximum-exceeded="true"
expired-url="multipleLogins.xhtml" />
</session-management>
The problem is that the user has two inputs from different browsers, there are certain buttons that perform ajax actions that do not trigger redirection. It seems that these are only buttons that submit forms or redirect the pages themselves that recognize several login actions.
For example, this button
<p:commandButton id="retrieve" value="#{msgs.BUTTON_RETRIEVE}"
action="#{removeContactForm.retrieve}" update="@form"/>
What extracts things from the web service and displays them on the page will not initiate a redirect if there are multiple logins.
<p:commandButton id="remove" value="#{msgs.BUTTON_REMOVE}"
action="/pages/confirm/confirmRemove.xhtml" ajax="false" process="@this"
immediate="true" rendered="#{!empty removeContactManager and
removeContactManager.contactRolesSuccessful}" />
However, this button (as it redirects to another page)
- webapp ajax- , ajax ?