MCPcopy Index your code
hub / github.com/TruthHun/DocHub / ResetCookie

Method ResetCookie

controllers/HomeControllers/BaseController.go:110–113  ·  view source on GitHub ↗

重置cookie

()

Source from the content-addressed store, hash-verified

108
109//重置cookie
110func (this *BaseController) ResetCookie() {
111 this.Ctx.SetCookie("uid", "")
112 this.Ctx.SetCookie("token", "")
113}
114
115//设置用户登录的cookie,其实uid是时间戳的加密,而token才是真正的uid
116//@param uid interface{} 用户UID

Callers 4

checkCookieLoginMethod · 0.95
LogoutMethod · 0.80
EditMethod · 0.80
GetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected