Results 1 to 2 of 2

Thread: How to maintain different sessions for different window tabs using spring security3?

  1. #1
    Join Date
    Aug 2011
    Posts
    1

    Question How to maintain different sessions for different window tabs using spring security3?

    I have implemented login functionality using Spring Security 3 Authentication.

    I am having problem with session management. Please follow the below scenario,

    1. Logged in using valid credentials.
    2. Opened another tab/browser window, and tried to logged in using valid credentials(different from previously used credentials).
    3. Now, the session object is updated with new values.

    I want to know is there a way to create a new session object for new login.

  2. #2
    Join Date
    Jul 2011
    Location
    Palo Alto
    Posts
    8

    Default

    If you are using a Servlet 3.0 container (like Tomcat 7) you can try setting <tracking-mode>URL</tracking-mode>.
    This will force the jsessionid into the url. When you open a new tab, it will not know the jsession id from the previous tab and in theory you can have two sessions in the same browser.

Tags for this Thread

Posting Permissions

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