cookie

package
v0.0.0-...-3e06d77 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(w http.ResponseWriter, key, path string)

*

  • del cookie *

func DelUserInfo

func DelUserInfo(w http.ResponseWriter)

func Get

func Get(req *http.Request, key string) string

*

  • get cookie *

func GetUserInfo

func GetUserInfo(req *http.Request) (int32, string)

*

  • 获取用户的信息 *

func Set

func Set(w http.ResponseWriter, key, value, path string, maxAge int)

*

  • set cookie *

func SetUserInfo

func SetUserInfo(w http.ResponseWriter, userId int32, username string) (bool, error)

*

*
*  设置用户登录信息
*
*

Types

This section is empty.

Jump to

Keyboard shortcuts

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