sticky session and Jsession id | Community
Skip to main content
October 16, 2015
Solved

sticky session and Jsession id

  • October 16, 2015
  • 3 replies
  • 1309 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

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

3 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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

smacdonald2008
Level 10
October 16, 2015

HTTP Session is not recommended with AEM. See this older thread:

http://adobe.ly/1dO8O7d

See: https://cqdump.wordpress.com/2013/03/18/jcr-sessions-and-cq5/

October 16, 2015

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.