mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
Fix timeout for cookie auth example
This commit is contained in:
1 parent
30c0a3f201
commit
564683d25a
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user