commit:5b2b87e086135ec35b24f67922e582480cb7a834
author:Chip Black
committer:Chip Black
date:Wed Jul 30 23:43:48 2014 -0500
parents:79fccce2b8adf36b7d08e810761bc49f07a4e271
Expire auth cookie on logout
diff --git a/cgi/cgi_blerg.c b/cgi/cgi_blerg.c
line changes: +1/-0
index 9df908b..8f502a2
--- a/cgi/cgi_blerg.c
+++ b/cgi/cgi_blerg.c
@@ -341,6 +341,7 @@ int main(int argc, char *argv[]) {
 			exit(0);
 
 		auth_logout(ac.name, ac.token);
+		printf("Set-Cookie: auth=X; Expires=Thu, 01 Jan 1970 00:00:00 GMT\r\n");
 		respond_JSON_Success();
 	} else if (strncmp(path, "/subscribe", 10) == 0) {
 		if (!check_auth(&ac))