JSP has a directive to prevent automatic session creation.
<%@ page *session*="false">


On 6/28/07, Fogleson, Allen <[EMAIL PROTECTED]> wrote:

I assume you are using JSP? If so... well no there is not. JSP by
default has a contract that a session is always available to it. Since
it is always available an HTTPSession is always created if one is not
available. We have gotten around this by having a session listener and
cleaning up a session using it.

Al

-----Original Message-----
From: Phil Sladen [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 28, 2007 10:13 AM
To: user@struts.apache.org
Subject: Is there any way to avoid session being created

My code does not call request.getSession(true) or request.getSession()
but struts still creates a session for me. I only want to create a
session for a logged in user. Can this behaviour be avoided? Thanks.



---------------------------------
Yahoo! Mail is the world's favourite email. Don't settle for less, sign
up for your freeaccount today.

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


Reply via email to