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:
parent
fd677c45aa
commit
17a99cfa81
2
flash.go
2
flash.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user