sessions

package
v0.0.0-...-5d7ec87 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Store = sessions.NewCookieStore([]byte("secret-password"))

Store the cookie store which is going to store session data in the cookie

Functions

func GetCurrentUserName

func GetCurrentUserName(r *http.Request) string

GetCurrentUserName returns the username of the logged in user

func IsLoggedIn

func IsLoggedIn(r *http.Request) bool

IsLoggedIn will check if the user has an active session and return True

Types

This section is empty.

Jump to

Keyboard shortcuts

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