Announcement Announcement Module
Collapse
No announcement yet.
user cache problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • user cache problem

    hi,
    we are using spring security for our project,for user authentication,we have multiple domains in our project,so for each and every domain he need to be authenthicated.so when the user is authenticated once using the project url,spring security is storing the url and user in the cache,i want the user to be authenticated again when he is comming from different domain,but when he is comming for next time he is forwarded to welcome page and the user is displayed from the cache.

    eg: http://localhost:8080/ProjectName?domain=1

    when i send the request as above for the first time the user will be authenticated,and in the next tab if i open another domain

    eg: http://localhost:8080/ProjectName?domain=2

    now the user is brought from cache,instead i want to treat it as a new request,so how could i resolve this?
    Please help me.

    Thanks and Regards,
    Sandeep.

  • #2
    Opening a new tab is copying all state for that server also. Session/cookies etc. are stored per server/url as you are still connected to localhost the data is copied and still available. Open an new clean browser (don't press CTRL+N in your current browser but really start a new one).

    Comment


    • #3
      Dear Marten,
      Thanks for your reply,as you have told it is working well when we take different browser,but how i need to configure spring security to make it work in two different tabs in the same browser.

      Thanks and Regards,
      Sandeep.

      Comment


      • #4
        As this is the nature of the browser you cannot unless you rewrite/reconfigure part of Spring Security (store the userinformation somewhere else then the session).

        Comment

        Working...
        X