简体   繁体   English

谷歌应用引擎会话

[英]google app engine session

  1. what is java app engine,default session time out ? 什么是java app引擎,默认会话超时?
  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 default? 如果我们将会话时间设置为非常长的时间会产生任何不良影响,因为谷歌应用引擎会话默认只存储在数据存储区中吗? (just like facebook, each time you go to the page, the session still exist forever) ? (就像facebook一样,每次你去页面,会话仍然永远存在)?
  1. Default session timeout is set to 30 Minutes. 默认会话超时设置为30分钟。 (you can verify it calling getMaxInactiveInterval method) (你可以验证它调用getMaxInactiveInterval方法)
  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. 使用setMaxInactiveInterval(-1)表示Session永远不会超时。 Keep in mind that you also need to overwrite the JSESSIONID cookie MaxAge to prevent to lose the Session when the browser is closed. 请记住,您还需要覆盖JSESSIONID cookie MaxAge,以防止在浏览器关闭时丢失会话。
  1. 我刚刚在我的GAE webapp上测试过,默认超时是getMaxInactiveInterval()= 86400(s)= 24小时= 1天

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM