Title: URL rewriting for session handling

I never got an answer to my question on Sep. 1, so I thought I'd try a second time, in case it got missed in the weekend rush.  Even if someone can point me towards an archive entry or FAQ, that would be much appreciated.  Here goes:

We reference our servlets via <SERVLET> blocks in SHTML/JHTML pages.  While we'd love to use cookies to maintain our session info, they require the SSI servlet to buffer the entire page before sending, and this is unacceptable to our customers. 

So, I've turned to the alternative - URL rewriting.  I'm now mapping the ParameterPropagatingSSI servlet and use encodeURL() on my generated URLs to tack on "JServSessionId".

But, now my question. What do I do with static HREF's on the very FIRST page of my application?  As there's no session ID on the URL yet, the ParameterPropagatingSSI had nothing to add to it. 

Is my only option really to do something like a sendRedirect() back to myself, after doing the getSession() the first time, with the session ID on the new URL?  Or am I missing something?

Jay

-- Jay Burgess
   Digital Archaeology
   mailto:[EMAIL PROTECTED]
   (913) 438-9444 x154

 

Reply via email to