maybe can't delete cookie error in same browser

This commit is contained in:
astaxie 2013-08-21 11:31:32 +08:00
parent fd677c45aa
commit 17a99cfa81
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ func ReadFromRequest(c *Controller) *FlashData {
}
}
//read one time then delete it
c.Ctx.SetCookie("BEEGO_FLASH", "", -1)
c.Ctx.SetCookie("BEEGO_FLASH", "", -1, "/")
}
c.Data["flash"] = flash.Data
return flash