Say post request was send to some /login url, with valid username and password parameters.
What should be in response? Must it contains jsessionid or/and other information?
How spring security identifies current user? Does it uses jsessionid filtering or it "looks" at other information (custome header, cookies etc.)? By "jsessionid filtering" I mean (may be it is wrong) that when user logins successfully spring security save jsessionid to successful authentificated session list and save other information (like roles) into session object. Does it works like that or not?
It would be nice if somebody provide step by step raw http requests/responses with authentication, for example what post request should contain and what corresponding response contains. Also, what request to secured resource need to contain (some header, cookie, jsession or else)?