HttpSession session = se.getSession();
session.setMaxInactiveInterval(60);
synchronized(this){
sessionCount++;
}
String id = session.getId();
Date now = new Date();
String message = new StringBuffer(
"New Session created on ").
append(now.toString()).append("\nID: ").
append(id).append("\n").append("There are now ").
append(""+sessionCount).append(
" live sessions in the application."). toString();
System.out.println(message);