Documentation
¶
Index ¶
Constants ¶
View Source
const ( CookieName = "pwikit_sessionid" CookieAge = 14 * 24 * time.Hour Salt = "django.contrib.sessions.SessionStore" KeyLength = 32 AuthUserID = "_auth_user_id" AuthUserBackend = "_auth_user_backend" AuthUserHash = "_auth_user_hash" )
Variables ¶
Functions ¶
Types ¶
type Store ¶
type Store struct {
Signer TimestampSigner
}
func (*Store) AuthHash ¶
AuthHash ties a session to the password it was opened under. Without this check a stolen session keeps working after the password changes.
func (*Store) AuthHashMatches ¶
AuthHashMatches tries the fallback secrets too, so a key rotation does not sign everyone out.
Click to show internal directories.
Click to hide internal directories.