You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Esbrook, Scott" <Sc...@compuware.com> on 2001/11/13 18:20:07 UTC
Session objects -- optional?
Hello,
Are session objects optional in a Struts application?
Currently, if I turn them off in a jsp page directive, the jsp (which uses
some Struts taglibs) does not compile. I really want to use all the nice
facilities of Struts (forms, taglibs, etc), but management wants our
application to NOT use session objects on the server for
performance/scalability reasons. This app, which requires cookie usage by
the client, will use an encrypted cookie set through some custom
functionality for user authorization. But checking these cookies in Mozilla
.9 (and removing <%@ page session="false" %> in the JSP), the JSESSIONID
cookie always gets set no matter what I do inside my Action class.
How can I eliminate Struts/Tomcat session management and still get the
benefits of Struts? Any help greatly appreciated.
Thanks,
Scott Esbrook
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Session objects -- optional?
Posted by Ted Husted <hu...@apache.org>.
Good question.
What you are seeing is the automatic URL rewriting, which is trying to
transparently maintain the JSESSOINID property. We've consistently
described it as automatic, and I don't think there's a simple way to
turn it off (now).
The other thing to watch for is that the servlet initialization
parameter for LOCALE is set to false.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/
"Esbrook, Scott" wrote:
>
> Hello,
>
> Are session objects optional in a Struts application?
>
> Currently, if I turn them off in a jsp page directive, the jsp (which uses
> some Struts taglibs) does not compile. I really want to use all the nice
> facilities of Struts (forms, taglibs, etc), but management wants our
> application to NOT use session objects on the server for
> performance/scalability reasons. This app, which requires cookie usage by
> the client, will use an encrypted cookie set through some custom
> functionality for user authorization. But checking these cookies in Mozilla
> .9 (and removing <%@ page session="false" %> in the JSP), the JSESSIONID
> cookie always gets set no matter what I do inside my Action class.
>
> How can I eliminate Struts/Tomcat session management and still get the
> benefits of Struts? Any help greatly appreciated.
>
> Thanks,
>
> Scott Esbrook
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>