1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 09:30:17 +00:00

add XSRFExpire

This commit is contained in:
astaxie
2013-08-07 11:22:23 +08:00
parent b191e96f51
commit 10f4e822c3
3 changed files with 13 additions and 1 deletions

View File

@ -46,6 +46,7 @@ var (
ErrorsShow bool //set weather show errors
XSRFKEY string //set XSRF
EnableXSRF bool
XSRFExpire int
CopyRequestBody bool //When in raw application, You want to the reqeustbody
)
@ -76,6 +77,7 @@ func init() {
HttpServerTimeOut = 0
ErrorsShow = true
XSRFKEY = "beegoxsrf"
XSRFExpire = 60
ParseConfig()
}