mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-04 17:33:21 +08:00
Increase cookie time
This commit is contained in:
@@ -83,7 +83,7 @@ func IsHuman(req *http.Request, rw http.ResponseWriter) bool {
|
||||
http.SetCookie(rw, &http.Cookie{
|
||||
Name: "session_id",
|
||||
Value: encoded,
|
||||
Expires: time.Now().Add(10 * time.Second),
|
||||
Expires: time.Now().Add(3 * time.Hour),
|
||||
})
|
||||
|
||||
return true
|
||||
|
Reference in New Issue
Block a user