Imports github.com/astaxie/beego/session github.com/astaxie/beego/middleware github.com/astaxie/beego/utils Standard library imports crypto/hmac compress/flate crypto/sha1 bytes compress/gzip encoding/base64 encoding/json encoding/xml errors fmt html/template io io/ioutil mime net/http net/url path/filepath reflect strconv strings time