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")