在Go中管理会话

huangapple go评论94阅读模式
英文:

Managing sessions in Go

问题

有一些用于会话的Go库吗?

在使用Python/Django时没有任何问题。

我对Go还不熟悉,也没有找到相关的信息。所以,Go是否有通用的会话支持?是否有一些带有会话支持的框架?(貌似web.go没有会话支持,是吗?)

英文:

Are there some Go libraries for sessions?

Using Python/Django there wasn't any problem.

I am new to Go and I haven't found anything about it. So, are there general sessions support for Go? Are there some frameworks with sessions support? (It seems web.go has no sessions support, doesn't it?)

答案1

得分: 7

Gorilla的sessions包是我使用的,我认为对大多数项目来说是最好的选择。Gorilla还提供了一个更低级别的包,securecookie

其他选项包括seshcookieauthcookie

英文:

Gorilla's sessions package is the one I use and I guess the best choice for most projects. Gorilla also offers a lower-level package, securecookie.

Other options include seshcookie and authcookie.

huangapple
  • 本文由 发表于 2012年3月12日 00:39:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/9656796.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定