Is there a reason you can't use Session.hasSession()