As I understand it, when a user logs in to Spring Security, terminates the session and creates a new one.
So, if I come from http with a clear cookie sessionID Spring Security should set a new secure sessionID cookie, which will be sent back by the browser only on subsequent https requests.
What I am missing is when the user “logged in” switches from https to http, because the sessionID cookie should be stored there, which is stored somewhere as an insecure cookie in order to track the session.
I do not understand how this controls Spring.
After a user logs in, if he views http, then the ClearID Session cookie is the same as the secure SessionID, and is it visible to the whole world? Someone can read this and grab the session.
I don’t understand how Spring Security thread can someone explain to me how it works?
thanks
source share