Google App Engine how to track httpsession destroy

老子叫甜甜 提交于 2019-12-06 02:15:37

As you observe, HttpSessionListener doesn't work on App Engine, so this isn't possible. This is in part due to the fact that App Engine apps run multiple instances on multiple machines, so there's no single VM to invoke this on. Running a regular cleanup script as you describe is the best way to do this, though there's really no reason to run it every minute - a couple of times a day should be perfectly sufficient!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!