title: session time out in spring security during Ajax call in grails
body: <p>I am new to grails. I am using grails 1.3.7, and spring security core plugin for security.</p>
  
  <p>My Application has most of the ajax calls.</p>
  
  <p>When session expired at that time my authAjax method sends 401 error code.</p>
  
  <p>Now My question is how do i rediect user to login page when get error code 401.</p>
  
  <p>Any help is greatly appriciated.</p>
  
  <p>Thanks.</p>