-
Feb 23rd, 2012, 01:21 AM
#1
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.
-
Feb 23rd, 2012, 02:04 AM
#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).
-
Feb 23rd, 2012, 04:52 AM
#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.
-
Feb 23rd, 2012, 05:57 AM
#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).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules