Updated to kramdown markdown syntax (i.e github).

Updated various content and nav links.
This commit is contained in:
Jocelyn Fiat
2016-05-27 09:51:24 +02:00
parent f74d1b3069
commit a14488346f
8 changed files with 109 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
Nav: [Workbook](../workbook.md) | [Generating Responses](../generating_response/generating_response.md)
Nav: [Workbook](../workbook.md) :: [Generating Responses](../generating_response/generating_response.md)
# Handling Cookies
@@ -10,6 +10,7 @@ Nav: [Workbook](../workbook.md) | [Generating Responses](../generating_response/
- [Examples](#examples)
<a name="cookie"></a>
## Cookie
A [cookie](http://httpwg.github.io/specs/rfc6265.html) is a piece of data that can be stored in a browser's cache. If you visit a web site and then revisit it, the cookie data can be used to identify you as a return visitor. Cookies enable state information, such as an online shopping cart, to be remembered. A cookie can be short term, holding data for a single web session, that is, until you close the browser, or a cookie can be longer term, holding data for a week or a year.
@@ -31,6 +32,7 @@ Client send cookies to server
<a name="properties"></a>
### Cookie properties
- Comment: describe the purpose of the cookie. Note that server doesnt receive this information when client sends cookie in request header.
@@ -44,6 +46,7 @@ Client send cookies to server
- Version:
<a name="set_get"></a>
## Write and Read Cookies.
To send a cookie to the client we should use the [HTTP_HEADER] class, and call ```h.put_cookie``` feature or
@@ -68,6 +71,7 @@ feature.
<a name="set_cookie"></a>
### How to set Cookies
Here we have the feature definitions to set cookies
@@ -112,6 +116,7 @@ Example of use:
end
```
<a name="read_cookie"></a>
### How to read Cookies
Reading a particular cookie
@@ -131,6 +136,7 @@ Reading all the cookies
<a name="examples"></a>
### Example
The following EWF service shows a basic use of cookies.
1. It display a message to first-time visitors.
@@ -285,4 +291,4 @@ end
```
Nav: [Workbook](../workbook.md) | [Generating Responses](../generating_response/generating_response.md)
Nav: [Workbook](../workbook.md) :: [Generating Responses](../generating_response/generating_response.md)