Commit 564683d2 authored by Sergey Lyubka's avatar Sergey Lyubka

Fix timeout for cookie auth example

parent 30c0a3f2
...@@ -58,6 +58,7 @@ static int check_login_form_submission(struct mg_connection *conn) { ...@@ -58,6 +58,7 @@ static int check_login_form_submission(struct mg_connection *conn) {
mg_printf(conn, mg_printf(conn,
"HTTP/1.1 302 Moved\r\n" "HTTP/1.1 302 Moved\r\n"
"Set-Cookie: ssid=%s; expire=\"%s\"; http-only; HttpOnly;\r\n" "Set-Cookie: ssid=%s; expire=\"%s\"; http-only; HttpOnly;\r\n"
"Content-Length: 0\r\n"
"Location: /\r\n\r\n", "Location: /\r\n\r\n",
ssid, expire); ssid, expire);
return MG_TRUE; return MG_TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment