---
name: "Eliom_cookie.server"
section: "3o"
platform: "linux"
package: "libeliom-ocaml-doc"
version: "4.0.0-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Eliom_cookie.server"
---

# Eliom\_cookie.server(3o)

Cookies table manipulation (Duplicate of Ocsigen\_cookies).

## NAME

Eliom\_cookie - Cookies table manipulation (Duplicate of Ocsigen\_cookies).

## Module

Module   Eliom\_cookie

## Documentation

Module **Eliom\_cookie**\
  :  **sig end**

Cookies table manipulation (Duplicate of Ocsigen\_cookies).

*module Cookies :* **sig end**

Map adressed by URL path, used for  **Eliom\_cookie.cookieset** .

*type cookie* =  **Ocsigen\_cookies.cookie** =\
  \| OSet **of** **float option \* string \* bool**    (\* Install a cookies on the client. The float option is the timestamp for the expiration date. The string is the value.  If the bool is true and the protocol is https, the cookie will be secure (it will ask the browser to send it only through secure connections). \*)\
  \| OUnset

HTTP cookies representation.

**=== Removes cookies from the client. ===**

*type cookieset* =  **cookie Eliom\_lib.String.Table.t Cookies.t**

Set of cookie, grouped by path.

*val empty\_cookieset* :  **cookie Eliom\_lib.String.Table.t Cookies.t**

Empty set of cookies.

*val add\_cookie* :  **Eliom\_lib.Url.path -\>** **string -\>** **cookie -\>** **cookie Eliom\_lib.String.Table.t Cookies.t -\>** **cookie Eliom\_lib.String.Table.t Cookies.t**

The function  **add\_cookie path c v cookie\_table** adds the cookie **c** to the table  **cookie\_table** .  If the cookie is already bound, the previous binding disappear.

*val remove\_cookie* :  **Eliom\_lib.Url.path -\>** **string -\>** **cookie Eliom\_lib.String.Table.t Cookies.t -\>** **cookie Eliom\_lib.String.Table.t Cookies.t**

The function  **remove\_cookie c cookie\_table** removes the cookie  **c** from the table  **cookie\_table** . Warning: it is not equivalent to **add\_cookie ... OUnset ...** ).

*val add\_cookies* :  **cookie Eliom\_lib.String.Table.t Cookies.t -\>** **cookie Eliom\_lib.String.Table.t Cookies.t -\>** **cookie Eliom\_lib.String.Table.t Cookies.t**

The function **add\_cookies newcookies oldcookies** adds the cookies from  **newcookies** to  **oldcookies** . If cookies are already bound in oldcookies, the previous binding disappear.
