beego开发web项目,遇到重新登录需要重定向到登录的问题直接看 github.com/astaxie/beego/context.Context.go文件Redirect方法代码实现方式 ctx.Redirect(302,redirectURL)//Redirectdoesredirectiontolocalurlwithhttpheaderstatuscode.
func(ctx*Context)Redirect(statusint,localurlstring){
http.Redirect(ct