Hi,
On Mon, 31 May 1999, Ed Watkeys wrote:
EW |Should session tracking work within servlets embedded in an SSI page?
EW |A servlet I've written spits out a cookie when invoked directly, but
EW |doesn't do anything when embedded with SSI.

Jeah, this is because the headers couldn't be written because the output
stream started writing. 

I'd propose generating the session with one single
Servlet (no SSI) and _use_ it within servlets embedded in SSI pages (they
can _read_ the Headers). 

I think this is the most portable way to track
sessions with cookies and SSI.

But you're right: if using Sessions and SSI one shouldn't be stuck with
URL rewriting .. so

EW |Thinking about how this would be implemented,

I just implemented it in the pre 1.1 Java Apache SSI. I am buffering the
whole stuff with a ByteArrayOutputStream and flush it at the end (no way
around that). committing it today to CVS.

This now makes cookies generated from servlets inside the page work.

Just thinking about making buffering the default behaviour for SSI. It has
some advantages but OTOH, the user has to wait until the _whole_ page is
generated ..

ciao,
  -hen
---
Henner Zeller                                 [EMAIL PROTECTED]
 PGP pub key [77F75B39]: finger [EMAIL PROTECTED] 

 "One difference between SuSE and Red Hat is that the former operates in a
  country where people don't sue each other over coffee being too hot."
                                                            Linus Torvalds




------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to