Minor language modification
This commit is contained in:
committed by
James Miranda
parent
57654a7a09
commit
b8f6599aab
@@ -12,7 +12,7 @@ The basic principle behind sessions is that a server maintains information for e
|
||||
|
||||
The key step here is to send the unique session id to the client. In the context of a standard HTTP response, you can either use the response line, header or body to accomplish this; therefore, we have two ways to send session ids to clients: by cookies or URL rewrites.
|
||||
|
||||
- Cookies: the server can easily use `Set-cookie` inside of a response header to save a session id to a client, and a client can then this cookie for future requests; we often set the expiry time for cookies containing session information to 0, which means the cookie will be saved in memory and only deleted after users have close their browsers.
|
||||
- Cookies: the server can easily use `Set-cookie` inside of a response header to send a session id to a client, and a client can then use this cookie for future requests; we often set the expiry time for cookies containing session information to 0, which means the cookie will be saved in memory and only deleted after users have close their browsers.
|
||||
- URL rewrite: append the session id as arguments in the URL for all pages. This way seems messy, but it's the best choice if clients have disabled cookies in their browsers.
|
||||
|
||||
## Use Go to manage sessions
|
||||
|
||||
Reference in New Issue
Block a user