问题
- what is java app engine,default session time out ?
- will that be any bad impact if we set sesion time out to very very long time, since google app engine session is just store in datastore by default? (just like facebook, each time you go to the page, the session still exist forever) ?
回答1:
- Default session timeout is set to 30 Minutes. (you can verify it calling getMaxInactiveInterval method)
- With that fairly limited info about your app, I don't see any impact.
UsingsetMaxInactiveInterval(-1)
indicates that the Session should never timeout. Keep in mind that you also need to overwrite the JSESSIONID cookie MaxAge to prevent to lose the Session when the browser is closed.
回答2:
- I've just tested on my GAE webapp and the default timeout is getMaxInactiveInterval()=86400 (s) = 24 hours = 1 day
来源:https://stackoverflow.com/questions/4496144/google-app-engine-session