Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First read up on HTTP cookies <a href="http://en.wikipedia.org/wiki/HTTP_cookie" rel="nofollow">http://en.wikipedia.org/wiki/HTTP_cookie</a></p> <p>A session is really just a data object on the server. Think of it as a python dictionary. It's should be persisted to the datastore and memcache. It has an id of some kind, which is usually stored in an HTTP cookie that is passed back and forth between the server and the browser.</p> <p>The session handling library essentially does the following when you receive a request: - Looks at the cookie and gets the session id - It - Pulls out the session data for that id from the datastore or memcache, and inserts it in the 'request' object.</p> <p>It also handles bookkeeping like saving the data, and verifying the cookies haven't been tampered with.</p> <p>Depending on the session library you use, it may be up to you to associate a session with a user. Often times, you won't necessarily need to explicitly associate a session with a user. You may have multiple sessions for any one user if they are accessing your site with multiple browsers. You do however, want to be careful to terminate sessions when a user logs out, as well as starting a new session when a new user logs in.</p> <p>Since sessions are generally disposable, you will eventually have a bunch of unused or expired session in your datastore, you'll need something to clean them up.</p> <p>As far as you're concerned with a mobile app, yes your mobile app needs to act like a browser, store the cookie data, and pass it back up to the server with each request. If you're using the android HttpURLConnection, use the optional CookieManager to handle this part.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload