csession

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package csession - Content managed by Project Forge, see [projectforge.md] for details.

Index

Constants

View Source
const (
	WebAuthKey  = "auth"
	WebFlashKey = "flash"
	ReferKey    = "refer"
)

Variables

This section is empty.

Functions

func GetFromSession

func GetFromSession(key string, websess util.ValueMap) (string, error)

func NewCookie

func NewCookie(v string) *fasthttp.Cookie

func RemoveFromSession

func RemoveFromSession(k string, rc *fasthttp.RequestCtx, websess util.ValueMap, logger util.Logger) error

func SaveProfile

func SaveProfile(n *user.Profile, rc *fasthttp.RequestCtx, sess util.ValueMap, logger util.Logger) error

func SaveSession

func SaveSession(rc *fasthttp.RequestCtx, websess util.ValueMap, logger util.Logger) error

func StoreInSession

func StoreInSession(k string, v string, rc *fasthttp.RequestCtx, websess util.ValueMap, logger util.Logger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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