Skip to content

Instantly share code, notes, and snippets.

@wcandillon
Created September 30, 2011 09:31
Show Gist options
  • Save wcandillon/1253246 to your computer and use it in GitHub Desktop.
Save wcandillon/1253246 to your computer and use it in GitHub Desktop.
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