title: grails 3.0.7 logout view
body: <p>I have a Grails 3.0.7 web application that does not have a login page, but needs to keep track of timeouts (i.e. when user does not do anything for say 10 mins). I have a HttpSessionListener implementation by which i can trap sessionCreated and sessionDestroyed events. On a sessionDestroyed event, i would like to show a decent timeout page. </p>
  
  <p>I am wired in the HTTPSessionListener implementation via resources.groovy like so :-
      import org.springframework.boot.context.embedded.ServletListenerRegistrationBean
      import com.sample.MySessionController</p>
  
  <pre><code>beans = {     
  mySessionListener(ServletListenerRegistrationBean) 
  {
      listener = bean(MYSessionController)
  }
  }
  </code></pre>
  
  <p>and in my Session Listener implementation i have the following</p>
  
  <pre><code>class MySessionController 
  implements HttpSessionListener, Events
  {
  void sessionCreated(HttpSessionEvent event)
  {
  println ("Session Created with id :- " + session.id)
  }
  void sessionDestroyed(HttpSessionEvent event)
  {
  println ("Session Destroyed with id :- " + session.id)
  }
  def cleanUpSession()
  {
      println "Your session has timed out and has been cleaned..."
      render "Your session has timed out and has been cleaned..."
  }
  }
  </code></pre>
  
  <p>Question is :- how do i redirect to a view in the sessionDestroyed event?</p>