String saveAttrib = (String)context.getSession().getAttribute("TEST");LOGGER.debug("Saved value: " + saveAttrib);context.getSession().setAttribute("TEST", "valueexists");saveAttrib = (String)context.getSession().getAttribute("TEST");LOGGER.debug("Saved value (after): " + saveAttrib);
LOGGER.debug("context.getRequest().getRequestedSessionId() : " + context.getRequest().getRequestedSessionId());LOGGER.debug("context.getRequest().getSession().getId() : " + context.getRequest().getSession().getId());
It seems when i go to another page first then to the login page, there is a valid session (via getRequestedSessionId()), and everything works ok. But when i try to go straight to a secured page, the framework redirects to the login page. But the precontroller on this page has no valid session. so nothing i set on the session is saved. and then the redirect sends back to login in a loop because a new session is never created.
runtime environment.i have my own LoginController. But this doesnt seem to be a login issue. Its more a controller issue. if i drop any controller onto a page as a precontroller, the code cant set session parameters if the page is the first one accessed.