diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -126,7 +126,7 @@ let mut cookie = Cookie::new("userid", cookie.set_secure(Some(true)); cookie.set_expires(expiry_date); cookie.set_same_site(SameSite::Lax); -resp.set_cookie(cookie); +headers.set_cookie(cookie); ``` This session id cookie can then be retrieved and verified as follows: |