Fix timeout for cookie auth example

This commit is contained in:
Sergey Lyubka 2015-06-05 18:09:27 +01:00
parent 30c0a3f201
commit 564683d25a

View File

@ -58,6 +58,7 @@ static int check_login_form_submission(struct mg_connection *conn) {
mg_printf(conn,
"HTTP/1.1 302 Moved\r\n"
"Set-Cookie: ssid=%s; expire=\"%s\"; http-only; HttpOnly;\r\n"
"Content-Length: 0\r\n"
"Location: /\r\n\r\n",
ssid, expire);
return MG_TRUE;