HttpSession in AEM 6.2 | Community
Skip to main content
broman__pl
Level 3
July 1, 2016
Solved

HttpSession in AEM 6.2

Hi, I try to use HttpSession to store some values but it is not working in AEM 6.2

Here is my test code when you click next you should see "my new value" instead null

<!doctype html>

<%@ page session="true" %>

<html>

<%

    //HttpSession sessionCustom=request.getSession(false);

    String oldValue = (String) session.getAttribute("val");

    session.setAttribute("val", "my new value");

%>

<body>

    <p>our old value <%= oldValue %></p>

    <a href="">next page</a>

</body>

</html>

</body>

</html>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sh1ju
Sh1juAccepted solution
Level 4
May 20, 2017

This is bug in jetty version.Solution upgrade jetty jar to version  3.4.0-B002

8 replies

Level 2
May 22, 2017

Sh1ju​ your solution works. Might even be included in Service Pack 1

Translate
Sh1ju
Sh1juAccepted solution
Level 4
May 20, 2017

This is bug in jetty version.Solution upgrade jetty jar to version  3.4.0-B002

Translate
Sh1ju
Level 4
November 21, 2016

Refer Adobe Experience Manager

Translate
Level 2
July 14, 2016

This is a critical bug at the very foundation of app servers. Any workaround here would be essentially a hack. Our current hack is to save session values in the respository

Translate
New Participant
July 14, 2016

I would like to hear if anyone is using any temporary solution to get around it and at least be able to continue with the development efforts.

Translate
Level 2
July 14, 2016

You're not alone, same issue here. Will open a ticket as well

Translate
New Participant
July 12, 2016

Hi,

we run into the same issue while trying to upgrade our app from 5.6 to 6.2. Wondering if you found a solution yet or not. I just submitted a ticket to Adobe, but not sure on how soon they will respond on that.

Thanks!

Varma.

Translate
kevinw83897078
New Participant
July 11, 2016

I have the same issue. I have some servlets that read objects from session. But I noticed the session ID keep changing in every request. Every time AEM 6.2 creates a new session. It looks AEM 6.2 doesn't support httpsession at all. Can someone please help?

Translate