Good day(Sir/ma), I am a java programmer just starting to explore the J2ee platform. I
use jdk1.4.2... and tomcat to develop and deploy my servlet. I however need a way to
end my session when ever I close my browser. I noticed when I close my browser my
session will still be on. I am currently
//Invalidate session if inactive for more than 1 hour
if(!session.isNew()){ // skip new sessions
Date hourAgo = new Date(System.currentTimeMillis() - 60*60*1000);
Date accessed = new Date(session.getLastAccessedTime());
if(accessed.before(hourAgo)) session.invalidate();
}
FIkayo Otun wrote:
, 2003 11:30 PM
Subject: Re: Servlet help needed!
//Invalidate session if inactive for more than 1 hour
if(!session.isNew()){ // skip new sessions
Date hourAgo = new Date(System.currentTimeMillis() - 60*60*1000);
Date accessed = new Date(session.getLastAccessedTime());
if(accessed.before
Hi, Ante
You actually don't need to edit anything in server.xml if your app uses
default settings. Just drop your app's directory tree into the webapp
subdir and start Tomcat. Which web.xml file did you make changes in
anyway? You're not supposed to edit the web.xml in the conf subdir!
Hope
I cannot deploy my servlet application to run by
Tomcat. I editet server.xml and web.xml files as described in documentation to
set up my contextes, but all I got on my screen is Tomcat error message:
Mapping context with unregisterred servlet
What this message is meaning to me. I