On Mar 14, 2013, at 10:56 AM, fachhoch wrote:

> mine app is running  behind   amazon load balancer may be its  ipaddress from
> that aws , I dont know , but all I care is not to create session , to aws
> load balancer I gave the url to ping my app which is a servlet   and this
> forwards to jsp in that jsp  I have 
> <%@ page session="false" %>
> 
> this should  not create a session ,  may be   some thing else is creating 
> a new session.

That's certainly possible.

> is there any way I can figure out what  was the request resource being
> called every few minutes

Configure an AccessLogValve if you don't have one already.  Then look at the 
log to see what URL the IP address is requesting.

  https://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve

> and which request resource is creating new session

Look at your code.  Setting "session=false" in your JSP will simply stop the 
JSP from creating a session by default.  If your code attempts to accesses the 
session at any point, that will also cause a session to be created.

Dan


> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://tomcat.10.n6.nabble.com/tomcat-6-0-35-in-production-maintaince-tp4995740p4995908.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to