HTTP Session behaviour doubts
Hi, I don't have much experience with JSP, I am trying to work with sessions in my web page and I think I am missing something:
I am trying to set some variables in my session to control some filters and parameters that my components use, I use them in Java using calls like these after sending the request to the Java class:
HttpSession session=slingRequest.getSession();
String st=(String)session.getAttribute(strArray[i]); and session.setAttribute(strArray[i],"true");
The thing I don't understand about this is that the session only seems to work after having used request.getSession() in one of the servlets called with AJAX methods, using this method in any other place (JSP or other JAVA classes) doesn't seem to make those session methods work, so to make my components work I have to manually call AJAX to create the session before using the components.
Do I have to get the session in a different way in my Java classes?
Thank you for your help,
Juan