How do I enable GAE session support using Java?
Also, a related question: I only want to store a small amount of state in sessions (basically, just a key) -- will GAE store this information in a client-side cookie, and if so, how secure is that approach?
Thanks!
Source code is written in specific versions of the supported programming languages: Python 2.7, Python 3.7, Python 3.8, Python 3.9, and Python 3.10. Java 8, Java 11, and Java 17. Node.
Features. Customizable infrastructure - App Engine flexible environment instances are Compute Engine virtual machines, which means that you can take advantage of custom libraries, use SSH for debugging, and deploy your own Docker containers.
The current Google Cloud project does not contain an App Engine application. Use `gcloud beta app create` to initialize an App Engine application within the project.
For the first question. In your appengine-web.xml
have:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
...
<sessions-enabled>true</sessions-enabled>
</appengine-web-app>
Please refer this Link provided by in comments in appengine-web.xml:
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With