cookie update
This commit is contained in:
Binary file not shown.
@@ -40,6 +40,7 @@ func sessionCookie(id int, player string) (*http.Cookie, error) {
|
||||
Name: cookieName,
|
||||
Value: sessionID,
|
||||
Path: "/",
|
||||
Domain: load_data["siteUnlock"].(string),
|
||||
HttpOnly: true,
|
||||
Secure: true,
|
||||
SameSite: http.SameSiteNoneMode,
|
||||
|
||||
@@ -67,6 +67,6 @@ var (
|
||||
".jpeg": true,
|
||||
".gif": true,
|
||||
}
|
||||
cookieName string = "playerSession"
|
||||
cookieName string = "_Session_"
|
||||
load_data map[string]interface{}
|
||||
)
|
||||
|
||||
@@ -101,6 +101,7 @@ func main() {
|
||||
log.Println("concluido, back_end rodando")
|
||||
|
||||
/* rotas */
|
||||
|
||||
e.GET("logout", logout)
|
||||
e.GET("/", online)
|
||||
e.GET("roll", roll_get)
|
||||
|
||||
BIN
source.zip
Normal file
BIN
source.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user