Am 16-11-2015 17:06, schrieb Sylvain Faivre:
On 11/10/2015 10:56 PM, Aleksandar Lazic wrote:
Dear Sylvain Faivre,
This would be helpfully to see the full response.
Maybe some appserver behaves different.
As far as I know, there is no way for the server to detect if the
client has cookies enabled, by looking only at the first request from
According to a quick Google search, the most common ways to detect
to reply with a redirect response with the cookie set, then when
processing the redirected URL, check if the client sent the cookie
along with the request (so this case will be covered by the proposed
Yes. That's also my experience.
I don't feel comfortable giving our application server version on a
public list, but I will send it to you in private.
Here are the headers from a client request and server reply, with a
brand new profile on the client (with cookies disabled) :
- request :
GET /front/url1.do?m=booking&langcode=FR HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0)
Accept-Encoding: gzip, deflate
- reply :
HTTP/1.1 200 OK
Date: Mon, 16 Nov 2015 15:25:41 GMT
Set-Cookie: JSESSIONID=uNmYNvgUME5-8LYPzimsCg__.8d15fc; Path=/front
And here is a URL sample from the body of the reply. You will notice
that the jsessionid is there twice, first one after a semicolon and
second one after a question mark. I am not sure if this comes from the
application server of from our custom code.
As described here
maybe you should stick on the header ;-)
Oh yes please tell us the results so that we can add this as migration
example for appsession.
OK, I will. This will not go into production yet, we still need to run
it on a test environment for at least 3 weeks...