Currently, session objects are stored in mongodb and cleared on restart. It would be better to store them in memcache (see DataStreaming.py for an example on how to use memcache) as they are ephemeral. This way, they are automatically cleared on restart as memcache is restarted when the system is started. Also this way, they are automatically cleared between flaskr worker processes.
Currently, session objects are stored in mongodb and cleared on restart. It would be better to store them in memcache (see DataStreaming.py for an example on how to use memcache) as they are ephemeral. This way, they are automatically cleared on restart as memcache is restarted when the system is started. Also this way, they are automatically cleared between flaskr worker processes.