Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to deal with session timeouts in AJAX requests?
    primarykey
    data
    text
    <p>I am using Spring-Security and Primefaces as view. How can i redirect user to login page after session timeout? I have a Tabview and several tabs inside it. so I need to deal with session timeouts in ajax requests. Is there any solution?</p> <p>Spring-security.xml file</p> <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd"&gt; &lt;http auto-config='true' use-expressions="true"&gt; &lt;intercept-url pattern="/login" access="permitAll"/&gt; &lt;intercept-url pattern="/pages/*" access="hasRole('admin')" /&gt; &lt;intercept-url pattern="/j_spring_security_check" access="permitAll"/&gt; &lt;logout logout-success-url="/login.xhtml" /&gt; &lt;form-login login-page="/login.xhtml" login-processing-url="/j_spring_security_check" default-target-url="/pages/index.xhtml" always-use-default-target="true" authentication-failure-url="/login.xhtml"/&gt; &lt;/http&gt; &lt;!--Authentication Manager Details --&gt; &lt;authentication-manager alias="authenticationManager"&gt; &lt;authentication-provider user-service-ref="customUserDetailsService"&gt; &lt;!-- &lt;password-encoder hash="md5"/&gt;--&gt; &lt;/authentication-provider&gt; &lt;/authentication-manager&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload