(Using web2py 1.99.7. Running on Ubuntu/EC2 with Elasticache) I've followed the deployment recipe for storing sessions in memcache but they expire after 300 seconds of inactivity. That appears to be because MEMDB doesn't look to pass down a time_expiry, therefore the set() function from gluon/contrib/memcache/__init__.py always uses the default of 300.
The only way I've found to change this is to explicitly modify the default value from this source file. Is there a better way to configure this value for session expiry from within application code? Cheers. --

