cookie update

This commit is contained in:
2025-07-11 10:08:28 -03:00
parent 61f7cd28dc
commit bef78e5951
5 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -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,

View File

@@ -67,6 +67,6 @@ var (
".jpeg": true,
".gif": true,
}
cookieName string = "playerSession"
cookieName string = "_Session_"
load_data map[string]interface{}
)

View File

@@ -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

Binary file not shown.