Do you mean that you have evidence on the client side that the session is not closed?
Or do you want to make sure that the previous session is closed on the server side before opening a new one from...