Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 default? (just like facebook, each time you go to the page, the session still exist forever) ?
like image 378
cometta Avatar asked Dec 21 '10 03:12

cometta


People also ask

What is Google App Engine used for?

App Engine is a fully managed, serverless platform for developing and hosting web applications at scale. You can choose from several popular languages, libraries, and frameworks to develop your apps, and then let App Engine take care of provisioning servers and scaling your app instances based on demand.

How many types of instances does Google App Engine offer?

Google App Engine provides four possible runtime environments for applications, one for each of four programming languages: Java, Python, PHP, and Go. The environment you choose depends on the language and related technologies you want to use for developing the application.

How many app engines are in a project in GCP?

Each Cloud Platform project can contain one App Engine application.


2 Answers

  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.
like image 52
systempuntoout Avatar answered Oct 12 '22 11:10

systempuntoout


  1. I've just tested on my GAE webapp and the default timeout is getMaxInactiveInterval()=86400 (s) = 24 hours = 1 day
like image 30
Freddy Boucher Avatar answered Oct 12 '22 12:10

Freddy Boucher