And when it is opened in Internet Explorer in iframe cookie JSESSIONID
is never sent to server during any request. Thus server session is no used. I found article saying IE just blocks cookies for any
page inside iframe. That is why JSESSIONID
cookie is not sent to server.
So how to make it possible to continue using java session in IE iframe?
I use jsf and get exception that View myview.xhtml could not be restored.
javax.faces.application.ViewExpiredException
.
Exactly on server side I could access
request.getCookies()
and saw there is no cookie with name JSESSIONID
.
Therefore session is not assigned to request on server.
Also looking to development tools in IE on Network tab I see that really response has Set-Cookie JSESSIONID=...
and later request does not have Cookie JSESSIONID=...