diff include/urweb.h @ 466:1626dcba13ee

Cookies work across pages
author Adam Chlipala <adamc@hcoop.net>
date Thu, 06 Nov 2008 14:03:50 -0500
parents bb27c7efcd90
children 3f1b9231a37b
line wrap: on
line diff
--- a/include/urweb.h	Thu Nov 06 12:46:45 2008 -0500
+++ b/include/urweb.h	Thu Nov 06 14:03:50 2008 -0500
@@ -6,7 +6,7 @@
 
 extern uw_unit uw_unit_v;
 
-uw_context uw_init(size_t page_len, size_t heap_len);
+uw_context uw_init(size_t outHeaders_len, size_t page_len, size_t heap_len);
 void uw_set_db(uw_context, void*);
 void *uw_get_db(uw_context);
 void uw_free(uw_context);
@@ -101,5 +101,5 @@
 
 void uw_write_header(uw_context, uw_Basis_string);
 
-uw_Basis_string uw_Basis_get_cookie(uw_context, uw_Basis_string);
-uw_unit uw_Basis_set_cookie(uw_context, uw_Basis_string, uw_Basis_string);
+uw_Basis_string uw_Basis_get_cookie(uw_context, uw_Basis_string c);
+uw_unit uw_Basis_set_cookie(uw_context, uw_Basis_string prefix, uw_Basis_string c, uw_Basis_string v);