Hello All,
This is the first time for me to ask a question to all of experts.
And I may be almost beginner of development of web application.
I would be grateful for your support.
Anyway, Following is my problem.
--session sometimes does not expire, that is, sometimes sessionDestroyed
does not appear on the tomcat log.
-My environment:
Tomcat 5.0.28
Apache 2.0.52
RedHat Linux Enterprise 4 update2
jdk1_5_0_05
CPU:Pentium4 3.4GHz
Memory:2G
-What I did
1.Open web browser and log-in to our web application.
2.Close web browser by clicking "x"button
3.Watch tomcat log to see session expires or not
(check whether sessionDestroyed appear or not).
-Result1
At first, I set session-timeout in web.xml to "1".
And web.xml exists under "conf" directory.
After about 1-2 minutes, session should expire. But
sometimes(1 out of 10 trial) it didn't expire.
-Result2
After Result1, I browse Experts Exchange to find a solution.
Then someone tried to use session.setMaxInactiveInte
rval()
instead of session-timeout and it seems he solved the problem by doing so.
So I tried to do the same thing. That is, I commented out the part of
session-timeout in web.xml and insert session.setMaxInactiveInte
rval(60)
into the place where session is created. But the result was same as Result1.
Now I have no idea...
So my question is as follows.
1. Please tell me any idea to solve the problem.
2. Is there any relations between above phenomenon and the specification of CPU or memory?
3. Is there any reletions between above phenomenon and the specification of NIC?
Start Free Trial