Friday, November 30, 2001 06:23 AM
Here's some code that will demonstrate how to restart a session without closing the browser. Enter the jsp once and it will display null. Refresh the page and you will get hello world. Note that you can't use the 'session' variable after you have invalidated. You have to request.getSession(true) to get a handle.
<%request.getSession(true).setAttribute("hello", "hello world");%>