I have the following scenario:
- I access to a web application - that makes use of spring security, create an object in session, let us say a cart with some entries.
- I access the application using a restful client. I do have: user, password, JSESSIONID cookie with its corresponding value. Both are using basic authentication.
The result? I get the object - the cart on this case - but it comes empty. It does not have the entries that were added. It is almost like - even though I was able to authenticate successfully there is a mechanism in place that creates a new instance of the object, instead of giving me the existing one.
Do you have any idea of spring security is somehow not allowing this to happen.
I also noticed that... I send the Cookie JSESSIONID=Number and when it responds it gives me a different Number for JSESSIONID, my assumption is that even though I have the wright credentials and it allows me to log in, it does not allow me to use the same session, it simply creates a new one and my cart is empty there.
Any help will be greatly appreciated!