Session init and destroy

Hi!

I’m trying to implement session init and destroy listeners, but I have few problems. How can I obtain HTTP session id of destroyed session in destroy listener (event.getSession().getSession() is null)? I need it to be able to perform some cleanup tasks. Another question is how can I redirect user to another page in session init listener. This is needed to prevent too many users from logging to application. I would like to redirect to login page with parameter that gives message to user.

Thanks,
Joni