Hi ranchers, Because of the lack experience, I am not able to understand session management well. Here is an coding example, and I was trapped in some steps. Please give me some advices.
I have prepared SessionDisplayer, and not clear about how to realize step 4 and 5 and its purpose. Thank you.
4. HttpServletResponse has methods called encodeURL and encodeRedirectURL, depending on what you want to do. Purpose : support for url rewriting (session tracking mechanism) 5. HttpServletRequest has a method called getKookies() where you can check if the JSESSIONID cookie is present. Purpose : determine which session tracking mechanism is being used.
You should read something about "Session Tracking Mechanisms" for servlets.
NOTE : I had to rename the getKookie method otherwise I could not post. It should be "C" instead of "K" [ March 23, 2007: Message edited by: Satou kurinosuke ]