Created
September 30, 2011 09:31
-
-
Save wcandillon/1253246 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module namespace ex = "http://www.28msec.com/example"; | |
import module namespace cookie = "http://www.28msec.com/modules/http/cookie"; | |
declare sequential function ex:howto-set-a-cookie() { | |
cookie:set-cookie( | |
<cookie:cookie | |
name="examplecookie" | |
expires="2020-10-24T18:00:00" | |
path="/" | |
domain="28msec.com" | |
secure="false"> | |
<cookievalue>some text</cookievalue> | |
</cookie:cookie>; | |
); | |
"Cookie set"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment