Even after specifying create-session="stateless"
spring is creating JSESSIONID cookies and writing it into the browser cache. My understanding was ; if we mention it as stateless spring doesn't add anything to the session. Am I missing anything here or is my understanding wrong ?
The problem I am facing because of this is
I am using both basic authentication (for rest services) and form based authentication in my application. If a user is logged in to the firefox , and he uses the basic authentication to invoke the rest service using RestClient it logs out the first user after the rest service is returned. My intention was to keep the first user session active . Please find my configuration below
<http auto-config="false" pattern="/rest/internal/**"
entry-point-ref="headerBasedAuthenticationEntryPoint" create-session="stateless"
disable-url-rewriting="true">
<custom-filter position="BASIC_AUTH_FILTER"
ref="headerBasedAuthenticationFilter" />
</http>
I get the following response header in the RestCLient
Status Code: 200 OK
Content-Language: null
Content-Length: 1043
Content-Type: text/html;charset=utf-8
Date: Wed, 19 Nov 2014 10:26:57 GMT
Set-Cookie: JSESSIONID=77C3AC743413C9455CF6FB1EC35F021E; Path=/myApplication/; HttpOnly login=""; Path=/; Secure; HttpOnly userId=4be114d57a3c4d428e3ec9b3cea33463; Expires=Sat, 28-Jul-2046 12:13:37 GMT; Path=/; Secure; HttpOnly lang=en; Expires=Sat, 28-Jul-2046 12:13:37 GMT; Path=/