From d2a3f2cedd7c00d0933222aed9c06b3149aa4db4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
Date: Wed, 4 Apr 2018 13:13:37 +0200
Subject: Cowboy 2.3.0
---
docs/en/cowboy/2.0/guide/cookies/index.html | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
(limited to 'docs/en/cowboy/2.0/guide/cookies')
diff --git a/docs/en/cowboy/2.0/guide/cookies/index.html b/docs/en/cowboy/2.0/guide/cookies/index.html
index dc0adfd7..c62e9017 100644
--- a/docs/en/cowboy/2.0/guide/cookies/index.html
+++ b/docs/en/cowboy/2.0/guide/cookies/index.html
@@ -7,7 +7,7 @@
-
+
Nine Nines: Using cookies
@@ -95,7 +95,7 @@ update the expiration time and avoid losing a cookie.
By default cookies are defined for the duration of the session:
-
@@ -103,7 +103,7 @@ http://www.gnu.org/software/src-highlite -->
Req = cowboy_req:set_resp_cookie(<<"sessionid">>, SessionID, Req0).
They can also be set for a duration in seconds:
-
@@ -112,7 +112,7 @@ http://www.gnu.org/software/src-highlite -->
#{max_age => 3600}).
To delete cookies, set max_age
to 0:
-
@@ -122,7 +122,7 @@ http://www.gnu.org/software/src-highlite -->
To restrict cookies to a specific domain and path, the options
of the same name can be used:
-
@@ -134,7 +134,7 @@ in the path hierarchy.
To restrict cookies to secure channels (typically resources
available over HTTPS):
-
@@ -143,7 +143,7 @@ http://www.gnu.org/software/src-highlite -->
#{secure => true}).
To prevent client-side scripts from accessing a cookie:
-
@@ -164,7 +164,7 @@ involve parsing the cookie header(s) and so should not
be called repeatedly.
You can get all cookies as a key/value list:
-
@@ -175,7 +175,7 @@ only the ones you need, while at the same time doing
any required post processing using
constraints.
This function returns a map:
-
@@ -185,7 +185,7 @@ them. The following snippet will crash if the id
cookie is
not an integer number or if the lang
cookie is empty. Additionally
the id
cookie value will be converted to an integer term:
-
@@ -196,7 +196,7 @@ will be a list of the two cookie values.
if the
lang
cookie is not found. It will not be used if
the cookie is found but has an empty value:
-
@@ -261,6 +261,8 @@ exception is thrown.
+
2.3
+
2.2
2.1
--
cgit v1.2.3