1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 18:10:55 +00:00

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

View File

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