开发者

google app engine session

  1. what is java app engine,default session time out ?
  2. 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) ?


  1. Default session timeout is set to 30 Minutes. (you can verify it calling getMaxInactiveInterval method)
  2. With that fairly limited info about your app, I don't see any impact.
    Using setMaxInactiveInterval(-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.


  1. I've just tested on my GAE webapp and the default timeout is getMaxInactiveInterval()=86400 (s) = 24 hours = 1 day
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜