Skip to main content
gFly v1.15.1
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage
Edit page

Session & Cookie

Session

Review Session settings at document Configuration

Set session

c.SetSession("time", time.Now().String())

Get session

time := c.GetSession("time")

Cookie name gflyid for session.

Cookie

Set cookie

c.SetCookie("hello", "One")

Get cookie

hello := c.GetCookie("hello")