Google App Engine, how to track httpsession destroy

Does anyone know how to track httpsession destruction using GAE? I found that the HttpSessionListener is not working properly in GAE, and the sessionDestroyed method never calls.

To be more specific, I have information that I store in the database when a user logs into the application, but if some user is inactive for some time, I need to remove this information from db, it will be easy if the sessionDestroyed method is is called when such an event occurs, because at the moment I was running a cron task that runs every minute, the task asks that all data of this type process data in memory that is inactive and delete. But this is a very inefficient way to do this, I can optimize it using the cache. But perhaps this is another elegant way.

Any thoughts are warmly welcome.

+3
source share
1 answer

, HttpSessionListener App Engine, . , App Engine , . script, , , - !

+3

Source: https://habr.com/ru/post/1788033/


All Articles