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" %>



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

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

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



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

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





View Entire Topic