开发者

Google App Engine: Using datastore with users who are not logged in

开发者 https://www.devze.com 2023-01-22 22:02 出处:网络
I am reading the Users Service to learn about the Users API before I deploy my app. I would like to have users try the app without logging in first. Is this possible? I 开发者_如何学Goneed to store th

I am reading the Users Service to learn about the Users API before I deploy my app. I would like to have users try the app without logging in first. Is this possible? I 开发者_如何学Goneed to store the input from a given user to Datastore and then fetch it. Thanks.


Users are not required to be logged in for you to use the datastore in your app.

If your demo stores data associated with a particular user, you will need to find a way to associate the 'demo' data with the right user. Perhaps you can accomplish that using sessions. If your using Python, you might look at gae-utlitiies or gae-sessions.

Java has built-in support for sessions.

0

精彩评论

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

关注公众号