google app engine session
- 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 defau开发者_JAVA百科lt? (just like facebook, each time you go to the page, the session still exist forever) ?
- 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.
- I've just tested on my GAE webapp and the default timeout is getMaxInactiveInterval()=86400 (s) = 24 hours = 1 day
精彩评论