7273747576777879808182
//before invalidation session.setAttribute("name", new Object()); session.setAttribute("name", new Object(), PortletSession.APPLICATION_SCOPE); session.invalidate(); //after invalidation try { session.setAttribute("name", new Object());
//before invalidation session.removeAttribute("name"); session.removeAttribute("name", PortletSession.APPLICATION_SCOPE); session.invalidate(); //after invalidation try { session.removeAttribute("name");
5455565758596061626364
//before invalidate session.getAttributeNames(); session.getAttributeNames(PortletSession.APPLICATION_SCOPE); session.invalidate(); //after invalidate try {
5354555657585960616263
PortletSession session = request.getPortletSession(); //before invalidation session.isNew(); session.invalidate(); //after invalidation try { session.isNew();
131132133134135136137138139140141
assertNotNull(session); assertFalse(session.isNew()); assertEquals("foo_dispatched_value", session.getAttribute("foo")); // session.invalidate(); try { session.isNew(); fail();
107108109110111112113114115116117
public void testInvalidate() { PortletSession session = newSession(); session.invalidate(); replayControls(); WebSession ws = new PortletWebSession(session);