Try implementing a session listener concept
Next try
...