| Extracted from Pike v7.8 release 866 at 2018-02-09.

[Top]
Protocols
Protocols.HTTP
Protocols.HTTP.Session

# Method Protocols.HTTP.Session()->encode_cookies()

Method encode_cookies

  `string encode_cookies()`
  `void decode_cookies(string data, void no_clear)`

Description

  Dump all cookies to a string and read them back. This is useful to store cookies in between sessions (on disk, for instance). decode_cookies will throw an error upon parse failures. Also note, decode_cookies will clear out any previously learned cookies from the Session object, unless no_clear is given and true.