I am using DirectjNgine's implementation for my extjs project and i have a classe X that is scoped to session scope because i need to store some information throughout the session life, but i observe that when the session is expired a new instance of the class X is created within a new session and the presentation (javascript) doesn't have any information that the session has expired, i mean that the methodes of the class X are always available even if the first session has expired !! is there any generique way to informe the presentation (javascript) of session expiration without having to test the session availability within every method of the class X ?

Thanks in advance