Back to godoc.org

Package session

v1.1.0
Latest Go to latest

The highest tagged major version is .

Published: Jul 20, 2020 | License: MIT | Module: gitee.com/gookee/gookee

Index

Constants

const (
	COOKIENAME string = "GOSSID"
	TIMELAYOUT string = "2006-01-02 15:04:05"
)

func Init

func Init(sfn string, keep time.Duration) (err error)

type Session

type Session struct {
	// contains filtered or unexported fields
}

func Start

func Start(w http.ResponseWriter, r *http.Request) (ses *Session)

func (*Session) Clear

func (s *Session) Clear()

func (*Session) Get

func (s *Session) Get(name string) (value string)

func (*Session) Remove

func (s *Session) Remove(name string)

func (*Session) Set

func (s *Session) Set(name string, value string)

func (*Session) SetCookieExpire

func (s *Session) SetCookieExpire(t time.Duration)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier