Expand my Community achievements bar.

SOLVED

sticky session and Jsession id

Avatar

Level 2

Hi,
In our project we use HttpSession to store data that is used throughout the site. We have a setup which has 2 publish intsances and the dispatcher is configured to have sticky session. Everything works fine on most of the browsers except Safari and iOS devices. We observed that JSESSIONID is changing on each and every request. We suspect this could be the reason why iOS is unable to support sticky. Because of this we are losing session data as the request is served by another publish instance. Please suggest how to resolve this issue.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

as I understand from your description this purely related to iOS devices and this special cookie, so not a problem special to AEM.

(On the other hand this strange behaviour would break quite a lot of applications and be therefor a big bug...)

kind regards,
Jörg

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

Hi,

as I understand from your description this purely related to iOS devices and this special cookie, so not a problem special to AEM.

(On the other hand this strange behaviour would break quite a lot of applications and be therefor a big bug...)

kind regards,
Jörg

Avatar

Level 2

Thanks for you quick response.

There are a lot of applications which use HTTP session an work fine on IOS. Why is this a problem in the case of AEM?

What in this case would be an ideal solution? Should we change our implementation/approach and avoid using HTTP session?

Please suggest what would be an alternate for HTTP Session on AEM. We cannot go with cookie approach as the data that we are storing in session is huge.

 

Thanks.