「Java」getAttributeNamesでセッション情報を取得するサンプル
サンプルコード
HttpSession session = request.getSession();
Enumeration e = session.getAttributeNames();
while(e.hasMoreElements()) {
String key = (String)e.nextElement();
if(key.startsWith("xxxx")){
//some code
}
}