HttpSession in AEM 6.2

broman__pl

01-07-2016

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>

View Entire Topic