top

Package sessions contains middleware for easy session management in Martini.

 package main

 import (
   "github.com/go-martini/martini"
   "github.com/martini-contrib/sessions"
 )

 func main() {
	  m := martini.Classic()

	  store := sessions.NewCookieStore([]byte("secret123"))
	  m.Use(sessions.Sessions("my_session", store))

	  m.Get("/", func(session sessions.Session) string {
		  session.Set("hello", "world")
	  })
 }

Imported by 276 package(s)

  1. github.com/3dd13/sample-martini-session-sign-in-sign-out
  2. github.com/3dd13/sample-martini-session-sign-in-sign-out/sessionauth
  3. github.com/Arimeka/hello_martini
  4. github.com/Arimeka/hello_martini/config/session
  5. github.com/Bowbaq/oauth2
  6. github.com/ConradIrwin/csrf
  7. github.com/FranklinYinanDing/SSNOC-SB8-Frontend
  8. github.com/GopherCasts/Lessons/lesson8
  9. github.com/GopherCasts/Lessons/lesson9
  10. github.com/GopherGala/authy/martini
  11. github.com/JamesClonk/cf-go-client-example
  12. github.com/JasonSoft/ThinkStore
  13. github.com/KojiTakahara/dragon-formula
  14. github.com/KojiTakahara/servant
  15. github.com/Logiraptor/nemesis/gae
  16. github.com/MartinGarton/gogs
  17. github.com/MendelGusmao/ephemeris/core/handlers
  18. github.com/MendelGusmao/ephemeris/core/middleware
  19. github.com/MendelGusmao/ephemeris/core/server
  20. github.com/Orion90/guessify
  21. github.com/OxySocks/Isogon
  22. github.com/Pollchat/pollchat
  23. github.com/Rompei/bot-net-framework
  24. github.com/SemQuery/web
  25. github.com/TimothyYe/vim-tips-web/routers
  26. github.com/Xe/code/web/monorail
  27. github.com/XuHaoJun/dao
  28. github.com/XuHaoJun/oauth2
  29. github.com/Zxnui/go-api-haiyun
  30. github.com/Zxnui/go-martini-test/test4
  31. github.com/abijr/Kails
  32. github.com/abijr/Kails/middleware
  33. github.com/acidlemon/gate
  34. github.com/acidlemon/isucon2014-qualifier/go
  35. github.com/agrison/oauth2
  36. github.com/alarky/isucon4_qual/go
  37. github.com/amap-vallons/amap-vallons-backend
  38. github.com/asaskevich/gosite
  39. github.com/ascoders/as
  40. github.com/ascoders/as/conf
  41. github.com/ascoders/as/lib/csrf
  42. github.com/ascurnow/FYP/fypMain
  43. github.com/ascurnow/oauth2
  44. github.com/asm-products/readraptor/lib
  45. github.com/axcoto/gocast
  46. github.com/axelgenus/loa/backend
  47. github.com/bgentry/dmv/examples/google
  48. github.com/bgentry/dmv/examples/local
  49. github.com/blachniet/oauth2
  50. github.com/blackazaru/blog
  51. github.com/catatsuy/gate
  52. github.com/catatsuy/go_ptl
  53. github.com/chobie/gate
  54. github.com/christopherobin/authy/martini
  55. github.com/chronitonapp/chroniton
  56. github.com/chronitonapp/chroniton/services
  57. github.com/chronitonapp/chroniton/utils
  58. github.com/ckeyer/go-ci/api
  59. github.com/ckeyer/go-ci/lib
  60. github.com/ckeyer/go-sh/api
  61. github.com/ckeyer/go-sh/lib
  62. github.com/ckeyer/sloth/api
  63. github.com/cloudfoundry-community/cf-go-client-example
  64. github.com/cmusv-fse/SSNOC-SB8-Frontend
  65. github.com/curt-labs/API
  66. github.com/curt-labs/GoAPI
  67. github.com/cwen-coder/youth
  68. github.com/dmathieu/deploy_docus/deploy_docus
  69. github.com/dougbarrett/expensetracker/frontend
  70. github.com/dougbarrett/martini-user-auth
  71. github.com/dougbarrett/oauth2
  72. github.com/drawing/Words
  73. github.com/drawing/Words/action
  74. github.com/drobertduke/stacker
  75. github.com/easykoo/oauth2
  76. github.com/edvakf/gate
  77. github.com/edvakf/isu4q/go
  78. github.com/ehazlett/dialogue/api
  79. github.com/elbuo8/contribot/contribot
  80. github.com/exAspArk/go-in-the-office
  81. github.com/exAspArk/oauth2
  82. github.com/fd/oapx
  83. github.com/fd/oapx/handlers
  84. github.com/firstrow/logvoyage/web
  85. github.com/firstrow/logvoyage/web/context
  86. github.com/firstrow/logvoyage/web/middleware
  87. github.com/forease/martini-middleware
  88. github.com/fort-pinnsvin/travel
  89. github.com/fort-pinnsvin/travel/handlers
  90. github.com/fort-pinnsvin/travel/helpfunc
  91. github.com/fujiwara/gate
  92. github.com/g89250741413/blog
  93. github.com/g89250741413/blog/controllers
  94. github.com/geraint0923/NUPoster
  95. github.com/go-galaxy/galaxy
  96. github.com/go-galaxy/galaxy/controller
  97. github.com/go-galaxy/galaxy/example
  98. github.com/gophergala/authy/martini
  99. github.com/gophergala/docker-bastion/manager
  100. github.com/gophergala/docker-bastion/manager/views
  101. github.com/gophergala/gopherpress/handlers
  102. github.com/gophergala2016/chroniton
  103. github.com/gophergala2016/chroniton/services
  104. github.com/gophergala2016/chroniton/utils
  105. github.com/handlename/martini-contrib-oauth2
  106. github.com/hdczsf/mandela
  107. github.com/heridev/gophergala_repositories/gopherpress
  108. github.com/hongzhen/csrf
  109. github.com/hongzhen/oauth2
  110. github.com/hongzhen/sessionauth
  111. github.com/hongzhen/sessionauth/example
  112. github.com/hoysoft/oauth2-1
  113. github.com/hugme/login_template/src
  114. github.com/humboldtux/authy/martini
  115. github.com/hwartig/Lessons/lesson8
  116. github.com/hwartig/Lessons/lesson9
  117. github.com/ikeikeikeike/godic/views
  118. github.com/izqui/gittask
  119. github.com/izqui/oauth2
  120. github.com/jShi-git/go-demos/session
  121. github.com/jaisingh/oauth2
  122. github.com/jakecoffman/game-server
  123. github.com/jamesmillerio/YNAWB
  124. github.com/jamieomatthews/gosnap
  125. github.com/jaredfolkins/csrf
  126. github.com/jayrox/gopixelrelay
  127. github.com/jayrox/gopixelrelay/controllers
  128. github.com/jayrox/gopixelrelay/middleware
  129. github.com/jayrox/vertigo
  130. github.com/jen6/busta/src
  131. github.com/jinpeng/oauth2
  132. github.com/jmervine/dmv/examples/google
  133. github.com/jmervine/dmv/examples/local
  134. github.com/jonthornton/martini-contrib-oauth1/oauth1
  135. github.com/jovon/cf_martini_api
  136. github.com/jshrake/pollr/rest-server
  137. github.com/jwilder/gofana
  138. github.com/jwilder/oauth2
  139. github.com/kilatev/GoGonki
  140. github.com/kklt92/NUPoster
  141. github.com/kustomzone/altcoin-go/gui
  142. github.com/kvannotten/projects/webapps/part2
  143. github.com/kyf/6ryim/6ryim_admin
  144. github.com/kyf/compass/admin
  145. github.com/kyf/compass/apps/admin
  146. github.com/lab-D8/lol-at-pitt
  147. github.com/lab-D8/oauth2
  148. github.com/lab-d8/lol-at-pitt
  149. github.com/lab-d8/oauth2
  150. github.com/latermoon/mdblog/controller
  151. github.com/lawnchairstudios/example-rest-api-go-martini
  152. github.com/lc0/datadriven-web
  153. github.com/lfn3/trmemarket
  154. github.com/lstoll/cameras
  155. github.com/mackee/gate
  156. github.com/martini-contrib/csrf
  157. github.com/martini-contrib/oauth2
  158. github.com/martini-contrib/sessionauth
  159. github.com/martini-contrib/sessionauth/example
  160. github.com/mbardea/podd.club
  161. github.com/mickelsonm/martini-dmvoauth
  162. github.com/mickelsonm/martini-dmvoauth/controllers/authentication
  163. github.com/mikeyoon/MyDailyStuff
  164. github.com/mikeyoon/MyDailyStuff/lib
  165. github.com/millere/ludanto/api/session
  166. github.com/milogert/ocdns
  167. github.com/motemen/pocket-expose-web
  168. github.com/mpgarate/justread
  169. github.com/mpgarate/justread/controllers
  170. github.com/mvader/gittask
  171. github.com/natemcmaster/adopt-a-source
  172. github.com/natemcmaster/adopt-a-source/api
  173. github.com/ninnemana/API
  174. github.com/ninnemana/dynamicfab
  175. github.com/ninnemana/dynamicfab/controllers/admin
  176. github.com/ninnemana/dynamicfab/controllers/auth
  177. github.com/nvisibleinc/control-surface
  178. github.com/oniproject/oniproject/oni
  179. github.com/patrickdappollonio/projects/webapps/part2
  180. github.com/payallmoney/sharego
  181. github.com/payallmoney/sharego/auth
  182. github.com/payallmoney/videomanager
  183. github.com/payallmoney/videomanager/src/app/admin
  184. github.com/payallmoney/videomanager/src/app/user
  185. github.com/payallmoney/videomanager/src/app/verifyer
  186. github.com/payallmoney/videomanager/src/app/worker
  187. github.com/payallmoney/videomanager/src/auth
  188. github.com/pengux/gogs
  189. github.com/pengux/readraptor/lib
  190. github.com/peteraba/go-blah/template
  191. github.com/pivotal-pez/pezauth/service
  192. github.com/prestonTao/mandela/web
  193. github.com/ptdave20/helpdesk
  194. github.com/qapi/goblog-playground
  195. github.com/ranveerkunal/login
  196. github.com/rday/sessionauth
  197. github.com/rday/sessionauth/example
  198. github.com/rmorriso/askeecs/server
  199. github.com/robinmin/polaris
  200. github.com/rolandjudd/thingstodo/server
  201. github.com/rolaveric/GoHttp
  202. github.com/rverton/csrf
  203. github.com/sausheong/goauthserv
  204. github.com/secmask/mpage
  205. github.com/secretpenguins/hello-go
  206. github.com/semquery/web
  207. github.com/semquery/web/app/common
  208. github.com/semquery/web/app/query
  209. github.com/semquery/web/app/user
  210. github.com/shiki49/0920_isucon4
  211. github.com/shiki49/pre_isucon4
  212. github.com/shogo82148/gate
  213. github.com/sibukixxx/gate
  214. github.com/silentred/instagram-crawler
  215. github.com/sizkin/gowebserver-sample
  216. github.com/sizkin/gowebserver-sample/sessionauth
  217. github.com/sklyar/go-test/page
  218. github.com/smallsweet/gofana
  219. github.com/sriluyarlagadda/projects/webapps/part2
  220. github.com/sshikaree/gosha
  221. github.com/steveoc64/cycle2u
  222. github.com/stinkyfingers/HitchInfoFinal
  223. github.com/stinkyfingers/angular
  224. github.com/stinkyfingers/bandPlan
  225. github.com/stinkyfingers/bandPlan/controllers/login
  226. github.com/stinkyfingers/improv
  227. github.com/stinkyfingers/improv/controllers/login
  228. github.com/takady/isucon4/qualifier/webapp/go
  229. github.com/taurencode/yacms/app
  230. github.com/taurencode/yacms/app/handlers
  231. github.com/tcolar/album
  232. github.com/theraphim/smartpxe/webcontrol
  233. github.com/timesking/webapp
  234. github.com/timothyye/vim-tips-web/routers
  235. github.com/tomsteele/dmv/examples/google
  236. github.com/tomsteele/dmv/examples/local
  237. github.com/toople-co/toople-web
  238. github.com/toqueteos/altcoin/gui
  239. github.com/tpiha/barecv/app
  240. github.com/tristanwietsma/askeecs/server
  241. github.com/trustedanalytics/application-broker/broker
  242. github.com/typester/gate
  243. github.com/ukitazume/bunkai
  244. github.com/unrolled/csrf
  245. github.com/unrolled/csrf/examples/angular
  246. github.com/unrolled/csrf/examples/server_rendered
  247. github.com/varver/go-boilerplate
  248. github.com/vastbinderj/dmv/examples/local
  249. github.com/viliamjr/microblog/blog
  250. github.com/viliamjr/microblog/login
  251. github.com/vpereira/micro-topt/services/login
  252. github.com/wataru420/isucon4/qualifier/webapp/go
  253. github.com/wdgk/isucon4-sample/webapp/go
  254. github.com/weslleyandrade/oauth2
  255. github.com/wheelcomplex/askeecs/server
  256. github.com/willnix/tinkerBlog
  257. github.com/xuender/family
  258. github.com/xuender/family/src
  259. github.com/xuender/family/web
  260. github.com/xuender/mgoAdmin
  261. github.com/xuender/mindfulness/src
  262. github.com/xuhaojun/dao
  263. github.com/xuhaojun/oauth2
  264. github.com/yetist/gossadmin
  265. github.com/ygabo/chatgo
  266. github.com/ygabo/gologin
  267. github.com/ygabo/todogo
  268. github.com/yinshuwei/xvxv/resmanager
  269. github.com/ymohii/csrf
  270. github.com/ymohii/csrf/examples/angular
  271. github.com/ymohii/csrf/examples/server_rendered
  272. github.com/ys/deploysaurus/deploysaurus
  273. github.com/yukidarake/isucon4/qualifier/webapp/go
  274. github.com/zakiry/isucon4_yosen/go
  275. github.com/zhigaev/auth
  276. github.com/ztsyed/oauth2

Imported only in test by 3 package(s)

  1. github.com/codinl/sessionauth
  2. github.com/gobuild/oauth2
  3. github.com/gorelease/oauth2

Imports 4 package(s)

  1. github.com/boj/redistore
  2. github.com/go-martini/martini
  3. github.com/gorilla/context
  4. github.com/gorilla/sessions