Go session variables? -
i'm new go language (golang) , i'm writing web-based application. i'd use session variables, kind in php (variables available 1 page next , unique user session). there in go? if not, how go implementing them myself? or alternatives methods there?
you want take @ gorilla. has session support documented here.
other or possibly 1 of other web toolkits go have roll own.
possible solutions might be:
- goroutine per user session store session variables in memory.
- store variables in session cookie.
- use database store user session data.
i'll leave implementation details of each of reader.
Comments
Post a Comment