mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-25 03:29:00 +08:00
Fix timeout for cookie auth example
This commit is contained in:
parent
30c0a3f201
commit
564683d25a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user