1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-25 12:55:57 +00:00

Fix/Disable session subdomain persistence on 127.0.0.1 and 0.0.0.0

This commit is contained in:
Makis Maropoulos
2016-06-30 17:55:33 +03:00
parent 386201f73a
commit a5db711207
2 changed files with 15 additions and 9 deletions

View File

@@ -72,9 +72,9 @@ type (
// Default 2 hours
GcDuration time.Duration
// DisableSubdomainPersistance set it to dissallow your iris subdomains to have access to the session cookie
// DisableSubdomainPersistence set it to dissallow your iris subdomains to have access to the session cookie
// defaults to false
DisableSubdomainPersistance bool
DisableSubdomainPersistence bool
}
)
@@ -85,7 +85,7 @@ func DefaultSessions() Sessions {
Cookie: DefaultCookieName,
Expires: CookieExpireNever,
GcDuration: DefaultSessionGcDuration,
DisableSubdomainPersistance: false,
DisableSubdomainPersistence: false,
}
}