web/web.go
func ContextWithCookieSecret(secret string) martini.Handler {
	return func(w http.ResponseWriter, req *http.Request, mc martini.Context) {
		ctx := &Context{req, map[string]string{}, secret, w}
		//set some default headers
		tm := time.Now().UTC()

		//ignore errors from ParseForm because it's usually harmless.
		req.ParseForm()
		if len(req.Form) > 0 {
			for k, v := range req.Form {
				ctx.Params[k] = v[0]
			}
		}
		ctx.SetHeader("Date", webTime(tm), true)
		//Set the default content-type
		ctx.SetHeader("Content-Type", "text/html; charset=utf-8", true)
		// set martini context for web.Context
		mc.Map(ctx)
	}
}
func ContextWithCookieSecret(secret string) martini.Handler {
	return func(w http.ResponseWriter, req *http.Request, mc martini.Context) {
		ctx := &Context{req, map[string]string{}, secret, w}
		//set some default headers
		tm := time.Now().UTC()

		//ignore errors from ParseForm because it's usually harmless.
		req.ParseForm()
		if len(req.Form) > 0 {
			for k, v := range req.Form {
				ctx.Params[k] = v[0]
			}
		}
		ctx.SetHeader("Date", webTime(tm), true)
		//Set the default content-type
		ctx.SetHeader("Content-Type", "text/html; charset=utf-8", true)
		// set martini context for web.Context
		mc.Map(ctx)
	}
}
// if cookie secret is set to "", then SetSecureCookie would not work