I'm looking to implement session support for Google App Engine using either gae-sessions or webapp2 sessions, which ever makes more sense. However, I don't really understand how it works. In the sample code, the most work they do is:
session = get_current_session()
I thought the whole point of sessions was to authenticate users. Here is my situation:
The user will only be able to use the iOS app when logged in. After the first time the user logs in, rather than sending the user's password for authentication every time, I've read that this is what session ids are for. So now, how do I use these frameworks to do this?
- Isn't there supposed to be some id?
- What do I send back to the client after a successful login?
- How does get_current_session know who the user is?
- What does the client send to the server with every request?
- What if the user is signed in from multiple devices?
Keep in mind that the client is not a browser, but a mobile application. I'm just not understanding how this all works for this case.