Results 1 to 2 of 2

Thread: Interceptors and Sessions

  1. #1

    Default Interceptors and Sessions

    Hello,

    I have a sign-in interceptor that stands in front of my "premium" pages and account management pages. However, I had a question as to when it gets invoked.

    Take for instance I have a request for a form -- e.g. change password. If the user is not signed in, the interceptor forces a sign-in and then redirects to the change password form. However, the form could potentially sit there and let the session expire before it is submitted.

    So the question is: does the interceptor get invoked for the form submission? If so, I should be routed to the sign-in form and then the form should be properly posted. However, I'm not sure if this is how it works. If not, I need to add some defensive code around onBind or onBindAndValidate or onSubmit (if they depend upon session data for any reason).

    Does anyone know how it works?

    Thanks,
    Bill

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    So the question is: does the interceptor get invoked for the form submission?
    The interceptor invocation depends on your configuration. As I showed in this http://forum.springframework.org/showthread.php?t=11444.
    Last edited by robyn; May 14th, 2006 at 04:39 PM.
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •