Hi Olivier,

Session size is important in a clustered environment. 4kb is the size
recommended by iPlanet as well, so it sounds like a good rule of thumb.

To keep session size down in Struts add a scope=request entry to your form
bean declaration in your struts-config.

Jon.

-----Original Message-----
From: Olivier Dinocourt [mailto:[EMAIL PROTECTED]] 
Sent: 14 January 2002 15:54
To: Struts Users Mailing List
Subject: Session size management with Struts

Hello list

Since I've been developing webapps, I've always been told that the HTTP
session should be kept as small as possible. IBM suggests a size of 4kb.
Struts seems to put form beans into the HTTP session, and one often needs
more than one form bean for a webapp. After browsing the Struts docs, it
seems that there is no mechanism to automatically or manually clean the
session once a form bean isn't needed anymore.

Does someone have any feedback on the subject ? Is session size so
important, or may I simply ignore it (although it doesn't like a good idea)
? Does Struts include (or is it planned to include) some feature to clean
the session's content easily ?

olivier


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to