sessions

package
v0.0.0-...-d9da739 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2017 License: MIT Imports: 2 Imported by: 1

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