You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nilesh <na...@extenprise.com> on 2006/07/19 11:03:49 UTC

New Session Created Randomly in Tomcat 5.0.28

Problem  Description : 

 1.  I have a  typical  JSP-Servlet web application running on tomcat
5.0.28. 

 2.  After successful login a new session is created. (in login.jsp) and
user specific data is kept in session

 3.  User moves on through the application .   Accesses  a JSP ( e.g.
PageWithHeavyJavascript.jsp),  JavaScript code.

 4.  After  doing some selections etc. PageWithHeavyJavascript.jsp,  user
browses another JSP ( e.g.  plain.jsp)  which *does not* have any session
related code. At this point *sometimes* a  NEW session is created. (By
implementing HttpSessionListener I observed that the sessionCreated() methos
is getting called everytime and sessionDestoryed() method is never getting
called)

5. After lot of debugging I have observed that this happens when  lot of
Javascript code is called through clicks etc. new session is created. I am
unable to link lot of Javascript calls with New session getting created.

 

I would appreciate if you can shed some light on this issue... any
hint/solution?

 

-Nilesh


RE: New Session Created Randomly in Tomcat 5.0.28

Posted by Nilesh <na...@extenprise.com>.

-----Original Message-----
From: Pid [mailto:p@pidster.com]
Sent: Wednesday, July 19, 2006 2:52 PM
To: Tomcat Users List
Subject: Re: New Session Created Randomly in Tomcat 5.0.28



Nilesh wrote:
> Problem  Description :
>
>  1.  I have a  typical  JSP-Servlet web application running on tomcat
> 5.0.28.
>
>  2.  After successful login a new session is created. (in login.jsp)
> and user specific data is kept in session
>
>  3.  User moves on through the application .   Accesses  a JSP ( e.g.
> PageWithHeavyJavascript.jsp),  JavaScript code.
>
>  4.  After  doing some selections etc. PageWithHeavyJavascript.jsp, 
> user browses another JSP ( e.g.  plain.jsp)  which *does not* have any
> session related code. At this point *sometimes* a  NEW session is
> created. (By implementing HttpSessionListener I observed that the
> sessionCreated() methos is getting called everytime and
> sessionDestoryed() method is never getting
> called)
>
> 5. After lot of debugging I have observed that this happens when  lot
> of Javascript code is called through clicks etc. new session is
> created. I am unable to link lot of Javascript calls with New session
getting created.

Does the Javascript do any AJAX?
No, AJAX is not used. 

> I would appreciate if you can shed some light on this issue... any
> hint/solution?
>
> 
>
> -Nilesh
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




Re: New Session Created Randomly in Tomcat 5.0.28

Posted by Pid <p...@pidster.com>.

Nilesh wrote:
> Problem  Description : 
> 
>  1.  I have a  typical  JSP-Servlet web application running on tomcat
> 5.0.28. 
> 
>  2.  After successful login a new session is created. (in login.jsp) and
> user specific data is kept in session
> 
>  3.  User moves on through the application .   Accesses  a JSP ( e.g.
> PageWithHeavyJavascript.jsp),  JavaScript code.
> 
>  4.  After  doing some selections etc. PageWithHeavyJavascript.jsp,  user
> browses another JSP ( e.g.  plain.jsp)  which *does not* have any session
> related code. At this point *sometimes* a  NEW session is created. (By
> implementing HttpSessionListener I observed that the sessionCreated() methos
> is getting called everytime and sessionDestoryed() method is never getting
> called)
> 
> 5. After lot of debugging I have observed that this happens when  lot of
> Javascript code is called through clicks etc. new session is created. I am
> unable to link lot of Javascript calls with New session getting created.

Does the Javascript do any AJAX?

> I would appreciate if you can shed some light on this issue... any
> hint/solution?
> 
>  
> 
> -Nilesh
> 
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org