Which makes the most sense for your scenario?
hmm..good question:-)
Look at my topic
https://coderanch.com/t/321300/EJB-JEE/java/destroy-sessionContext-EJB.
I want to get the session-instance when it s created by the user.
I have solved this via an
HTTPSessionListener storing all sessions in a map in the application-scope.
But how can I delete a particular Session via this listener?
Do I need the HTTPSessionEvent for that? Should I do that with the HTTPAttributeListener? Or with HttpSessionBindingEvent or HttpSessionBindingListener?
I have no clue how to retrieve and delete a particular session.
With session.invalidate() only the actual session will be destroyed.
I need something like the deprecated HttpSessionContext in which I can get a particular ID and delete it.
Any Ideas?