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

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -