[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cgi:make-cookie
From: |
Thien-Thi Nguyen |
Subject: |
Re: cgi:make-cookie |
Date: |
Wed, 14 Apr 2004 08:51:14 +0200 |
From: Brian S McQueen <address@hidden>
Date: Tue, 13 Apr 2004 15:36:08 -0700 (PDT)
I have no idea how to use this function: [cgi:make-cookie]
perhaps you will find the latest docs more clear:
- Scheme Procedure: cgi:make-cookie name value #:key (path #f) (domain
#f) (expires #f) (secure #f)
Return a string suitable for inclusion into an HTTP response header
as a cookie with NAME and VALUE. Recognize and format
appropriately the optional keyword parameters `#:path',
`#:domain', `#:expires' (strings); and `#:secure' (boolean).
here is a simple example call to this proc:
(cgi:make-cookie 'war 'lose #:path "/ignorance/suffering")
=> "Set-Cookie: war=lose; path=/ignorance/suffering"
note that NAME and VALUE may also be strings. probably next version of
guile-www will also accept keywords for those args.
thi
- cgi:make-cookie, Brian S McQueen, 2004/04/13
- Re: cgi:make-cookie,
Thien-Thi Nguyen <=