Results 1 to 4 of 4

Thread: Authenticated Session Timeout and chatty javascript

  1. #1
    Join Date
    Mar 2012
    Posts
    3

    Default Authenticated Session Timeout and chatty javascript

    Hi.

    I'm using Spring MVC and Spring Security for a project and everything works fine except the authenticated session that never expires.

    My guess is that, because of a "chatty" javascript that keeps GETting images from the site, the authenticated session never expires (since the application sees request coming from the authenticated user).

    I tried to use filters="none" in the hope to exclude in some way the static content from the "attention" of Spring Security, but it didn't work.

    Any opinion would be quite appreciated.

    Thank You.
    Regards,
    Diego Pigozzo

  2. #2
    Join Date
    Dec 2008
    Location
    India
    Posts
    295

    Default

    yes or can be, session-timeout is never-expired one
    Enjoy
    Rohan Chauhan
    ------------------------------------------------------------------------------
    SpringSource Certified Spring 3.0 Professional


  3. #3
    Join Date
    Mar 2012
    Posts
    3

    Default

    Quote Originally Posted by rohan123 View Post
    yes or can be, session-timeout is never-expired one
    I'm not sure what you mean. If you're meaning "<session-timeout>-1</session-timeout>" that's not the case, because I setted session-timeout to 5.

  4. #4
    Join Date
    Mar 2012
    Posts
    3

    Default

    It looks like it really is a problem caused by the "chatty javascript".

    Anyway I found out a workaround implementing a custom SessionManagementFilter that explicity invalidates sessions after some time has occured since last "meaningful request".

Posting Permissions

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