HttpSession session = se.getSession();
String id = session.getId();
String name = se.getName();
String value = (String) se.getValue();
String source = se.getSource().getClass().getName();
String message = new StringBuffer(
"Attribute bound to session in ").append(source).
append("\nThe attribute name: ").append(name).
append("\n").append("The attribute value:").
append(value).append("\n").
append("The session ID: ").
append(id).toString();
System.out.println(message);