sessionmanager

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSession

func CreateSession(w http.ResponseWriter, isOauth bool, OAuthRecheckInterval int)

CreateSession creates a new session - called after login with correct username / password If sessions parameter is nil, it will be loaded from config

func IsValidSession

func IsValidSession(w http.ResponseWriter, r *http.Request, isOauth bool, OAuthRecheckInterval int) bool

IsValidSession checks if the user is submitting a valid session token If valid session is found, useSession will be called Returns true if authenticated, otherwise false

func LogoutSession

func LogoutSession(w http.ResponseWriter, r *http.Request)

LogoutSession logs out user and deletes session

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL